An IF condition based on time

pedro-egoli

Well-known Member
Joined
Apr 25, 2004
Messages
1,217
Office Version
  1. 2016
Platform
  1. Windows
I currently have a cell with formula
Code:
=NOW()

This of course gives me todays date.
However, what I need is that todays date only appear after 5pm.

Background is that I take a solar reading at 5pm each day and this cell is used by a Summary sheet in a Month to Date column.

Not sure how to go about this so any help will be appreciated.

Pedro
 
Thanks Jeff,
Copy of B1:C1 below
Excel Workbook
BC
131-May-1103-06-11
JUN 2011


You are correct in that it does return 3/6/11, however it is in the MAY sheet and I want it to be no later than 31/5/11, otherwise it throws out the number of days in Summary sheet when the DATEDIF formula is used.
B1 is entered manually.

Headings of various columns take up rows 1:3 so the use of A4 as the start of dates.

Sorry for confusion

Pedro
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,225,149
Messages
6,183,178
Members
453,151
Latest member
Lizamaison

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