Quantcast
Channel: Microsoft Community - Super Fresh
Viewing all articles
Browse latest Browse all 1237235

EXCEL IF FUNCTION NOT WORKING FOR MULTIPLE TIMEVALUE CRITERIA

$
0
0

Hello,

I am trying to create an if function that will do the following:

If the "Total Hours Worked" is between 6 and 12 hours, then I need it to return 0.5 hrs break time. If it is above 12 hours I need it to return 1 hrs break time. I have tried nesting IF functions and even though the first part works just fine (it returns 0.5 hrs break time) it does not work when the "Total Hours Worked" is above 12 hrs. I Know the second part also works because I have tried it on its own (not nested) and it returns the value I want. So I must be doing something wrong with nesting the two criteria together. Your help would be much appreciated! Here is the formula I am using:

=IF(G4>=TIMEVALUE("6:00"),"0:30",IF(G4>=TIMEVALUE("12:00"),"1:00",0))


Viewing all articles
Browse latest Browse all 1237235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>