Pergunta

I need to track how many issues I close per hour.

I take a start time and compare that to the current time to see how long ive been at work, then subtract an amount of time for lunch, and subtract amount of time away from my desk to get how long Ive actually been working.

Now I take how long Ive actually been working and divide that by how many issues I have closed to see how many issues I have closed per hour.

I have the below metrics:

  • A20: 2:00 PM (start time)
  • C20: 0:30 (Length of Lunch)
  • E20: 0:00 (Length of time away from desk, different project etc..)

Formula to return decimal representation of hours worked:

  • B20: =HOUR(NOW()-A20-C20-E20)+MINUTE(NOW()-A20-C20-E20)/60

  • F20: 25 (issues worked, this number changes throughout the day)

Now I need to do G20: =(F20/B20)

When B20 changes, G20 is updated as you'd expect.

The problem is that since none of the cells related to the formula in B20 have changed, that value is not updated before G20 is calculated

How can I force the formula in B20 to update when the value of F20 changes?

VBA would be acceptable also (and probably easier) Im just not very familiar with VBA

Foi útil?

Solução

To your b20 formula add a dummy operation including f20 for example

=....+F20-F20
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top