2014-01-22 11:40:30 UTC
if <1=: N3=100$
if >1 but <=2: N4=200
if >2 but <=5: N5=300
if >5 but <=30 N6=400
if >30: N7=500
I'm using a time format in column E(estimated work time) which computes the difference in times between 2 days and give you the difference in the number of hours.(start date/finish date)
The formula I've come up with is:
=IF(COUNT([@[Estimated work Time]]),IF([@[Estimated work Time]]<=TIME(1,0,0),$N$3, IF(COUNT([@[Estimated work Time]]),IF([@[Estimated work Time]]<=TIME(2,0,1),$N$4, IF(COUNT([@[Estimated work Time]]),IF([@[Estimated work Time]]<=TIME(5,0,1),$N$5, IF(COUNT([@[Estimated work Time]]),IF([@[Estimated work Time]]
The problem I'm having is that for some times it isn't working properly.
For example the first 3 values where the time is between 0 and 5 the formula works. But when the Estimated work time value is greater than 5 but less than 30 it automatically gives me 500 rather than 400. Any value above 30 also gives the value 500.
I've tried multiple other things but haven't found a way to do this. Help would be appreciated.