Thanks:  0
Likes:  0

# Thread: Comparing time greater than or less than

1. ## Comparing time greater than or less than

Hi there

Please can someone help me. How do I create an IF formula to find cells where the number of hours in one cell is more than the number of hours in another cell? eg one cell has 0.40 hrs and another has 02.25 hours - I want have an IF formula to say where 02.25hrs > 0.40 then type "FAILED" but I cant overcome the greater than problem on the hours which is giving me the wrong answer.

2. ## Re: Comparing time greater than or less than

how are your times entered in the cells..

are they enterd as times
00:02:15

or as whole #s
2.25

3. ## Re: Comparing time greater than or less than

They are entered as times 00:02:15

4. ## Re: Comparing time greater than or less than

Like this?

Sheet2

 A B C 1 02:25 00:40 Failed

 Cell Formula C1 =IF(A1>B1,"Failed","")

Excel tables to the web >> Excel Jeanie HTML 4

5. ## Re: Comparing time greater than or less than

yes that's it - I am using that formula but not getting the same result. What format are those cells in? All three cells of mine are in custom hh:mm

6. ## Re: Comparing time greater than or less than

Thank you for your help - the format on one of the spreadsheets feeding the information was different. I have fixed it and used your formula above.

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•