View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default Stumped with an IF function

Grant,

times are store internally in Excel as fractions of a 24-hour day. Thus
24:00:00 is exactly equal to 1, and you can build this into your test
as follows:

=IF(A1=1,TRUE,FALSE)

Hope this helps.

Pete


Grant Reid wrote:
Hi

I have entered a time value 27:00 in cell A1, with the following custom format [h]:mm:ss. I want to construct a test that will
return "True" if the A1 is more than or equal to 24 hours, and "False" if less than 24 hours. I know this will entail the use of the
"IF" function, which I've tried but cannot get it to compute the correct response. Hope somebody can help with this.

Kind Regards - Grant