IF function formatting - help!!

angandbri

New Member
Joined
May 20, 2011
Messages
16
I have a document that has cells to formulate total days in house. We have a cell next to that that puts in the actual time it left. We want the cell that formulates the total days in the house to add an extra day if it left after 11:00 PM (as it will not actually leave until the next day). I have the following formula in the cell to calculate the formula, yet it will not add the extra day if past 11:00 - see chart for information:

Column G column J Column K Column L
date entered date out time shipped days in house
05/11/11 05/18/11 23:45:00 7

My formula is =IF(K50>"23:00:00",J50-G50+1,J50-G50)

For reference, I have tried changing the times to show 11:45 pm, and that did not work. Thanks!!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to the forums!

Try:

=IF(K50>TIMEVALUE("23:00:00"),J50-G50+1,J50-G50)
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top