Excel Date Question - Greater than.

RobertLDaniels

New Member
Joined
Nov 3, 2008
Messages
13
Hello, I have a date and time that is pullled within a report (6/27/2011 21:22). I need help on the excel formula that will reference that date in column A and if the hours and minutes are greater than 3pm (15:00) then carry the date to the next workday and start the time at 8pm (6/27/2011 8:00), that new date and time would then be shown in column B. If there a way to do this?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
3pm (15:00) IS .63

so to determine if the date is greater than that you could:

if(((date in question) - int(date in question))>.63, do this, do that)

=IF((A1-INT(A1))>0.63,INT(A1)+0.834,"something else")

date in A1, formula in B1
 
Last edited:
Upvote 0
1/24th * the hour

(1/24)*15 = 0.625

alternatively, enter the time in the cell as 15:00 then format the cell as General and the cell should show 0.625 (or 0.63 if you format for two places)
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,451
Members
452,915
Latest member
hannnahheileen

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