Back-Dating Problem

Aviles

Board Regular
Joined
Dec 17, 2008
Messages
163
Hi all,

I have cell on a workbook that shows the current system date (dd/mm/yyyy), and I'm looking for a formula that will amend the date depending on the time of day it is. Naturally, when the time moves past 12am, the system date clicks over to the next day.

What I would like is a formula that will only change the date after 9am the following day. So between 12am-9am I want the date in that cell to revert back to the previous date (i.e. I don't want the date to change until after 9am).

Can any one help with this please?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,258
How are you displaying the date ?
One way would be to use the =NOW() function formatted as date, and not showing the time.

If you are using NOW(), then you can do something like this
Code:
=NOW()-9/24
 
Upvote 0

Forum statistics

Threads
1,190,895
Messages
5,983,433
Members
439,843
Latest member
PlanetFitness

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
Top