View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sean Timmons Sean Timmons is offline
external usenet poster
 
Posts: 1,696
Default How to use time in an IF formula

That depends on what you have in the cells. Are they truly set as seconds or
are they minutes?

a day equals 1. So, an hour is 1/24. A minute is 1/1440. a second is 1/86400

sooo.. f they are set as true seconds, it would be..

if(P7< 45/86400,"EE",if(P7< 60/86400,"MA",if(P7< 80/86400,"MM","DNM")))

else, change to 1440 instead of 86400 above.....

"kwalker4" wrote:

Good morning.

I'm having trouble using time (minutes and seconds) in an IF formula. I'm
trying to assign a rating to four time thresholds. My rating and thresholds
are as follows...
"EE" <0:45 sec
"MA" 0:45-1:00
"MM" 1:01-1:30
"DNM" 1:31
For example, if cell P7 is 0:42 then cell Q7 would be assigned a rating of
"EE". If P7 is 1:31 then "DNM". Please tell me what my IF formula should be.
I have tried everything and nothing has worked so far. I appreciate your
help. Thanks!