Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Stumped with an IF function
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 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Stumped with an IF function
Time, in natural format, is scaled such that 24 hours = 1. So if the time is
in A1 then: =IF(A1 < 1,"FALSE","TRUE") -- Gary's Student "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 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Stumped with an IF function
=IF(A1=1,True,False)
or just =A1=1 -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Grant Reid" wrote in message ... 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 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Stumped with an IF function
Grant,
No need for an IF function if all you want is TRUE or FALSE: =A1=1 HTH, Bernie MS Excel MVP "Grant Reid" wrote in message ... 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 |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Stumped with an IF function
Hi Grant,
Try =IF(A1*24=24,"True","False") HTH Martin |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Stumped with an IF function
Many thanks to all who responded with an explanation.
Kind Regards - Grant |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Creating a Custom Excel Function to Calculate Gini Coefficients | Excel Worksheet Functions | |||
Date & Time | New Users to Excel | |||
Hyperlinks using R[1]C[1] and offset function in its cell referenc | Excel Worksheet Functions | |||
Conversion | Excel Worksheet Functions | |||
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. | Excel Worksheet Functions |