Date & Time Return a Date

shonaart

Board Regular
Joined
Nov 1, 2004
Messages
214
Hi
Column A = I have a Date & Time ( 2011/06/14 13:15 ) etc
Column B = I want the formula to look at Column A and return a Date. ( 2011/06/14 )

Here is the catch , a normal day , runs from 12 at night to 12 the following night.
I want my day to run from 06H00 to 05H59 the next day.
Therefore the 14th of June will be from the 2011/06/14 06:00 to 2011/06/15 05:59 .

The 2011/06/15 = 2011/06/15 06:00 to 2011/06/16 05:59

The date that must return is in this format 2011/06/15

pls help

Thanks
Vaughan
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try:
Code:
=IF(MOD(A1,1)<0.249305555553293,INT(A1)-1,A1)

Cell formatted as yyyy/mm/dd

/Comfy
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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