Try this:
=IF(SUM('Daily Hours'!L5)<50,IF(SUM('Daily Hours'!L5)<40,SUM('Daily Hours'!L5),""),"")
=if(and(L540)=true,L5,"")
Out of curiosity, why did you use the word "SUM" in your formula? Did you mean to have L5 represent a range? If so:
=If(and(sum(data)<50,sum(data)>40)=true,sum(data),"")
Hope that helps out
Adam S.
hey my post went a bit screwy - oops
=IF(AND(SUM('Daily Hours'!L5)<50,'Daily Hours'!L5>40),SUM('Daily Hours'!L5),"")
Note: this will give the values: 41, 42, 43, 44, 45,...49 only! JSW
I am taking the total from another sheet that is the sum of that row. Someone else taught me how to do this, so if it's wrong let me know the right way.
Thanks
There is no need to use the sum, as adam suggest. The sum of one cell is the same as just the cell.
Another formula you could use is
='Daily Hours'!L5*('Daily Hours'!L5 > 40)*('Daily Hours'!L5 < 50)