Please Help - date/hour conditions

Rimantas

New Member
Joined
Mar 21, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello,
I watching youtube and Excel documentation, but there are just simple examples which I cant relate to my project.
I dont understand what kind syntax must be used in order to sort dates with hours.

Example:
Every day I need to sort dates with hours. Format 3/24/2020 0:00 in the cell. and i need to make condition which shows:
Mark dates which are older now()-1 and of that last oldest day hour 8:00
.
today is 3/21/2020 11:58
show and mark me:
3/20/2020 9:01 - do not mark
3/19/2020 7:58 - this date SHOULD be selected and marked, because it is less than 8:00 AM
3/19/2020 8:01 - this date should NOT be selected and marked, because it is good time from 8:00 AM
3/18/2020 9:01 - mark this one because it is older
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
You don't say how you want to 'Mark' the entries, but as a logical test, to return TRUE for the second and fourth conditions in your list, or FALSE for the first and third:-

=OR(MOD(A2,1)<("08:00:00"+0),A2=MAXIFS(A:A,A:A,">="&INT(A2),A:A,"<"&INT(A2+1)))

Assumed data in column A, first record in A2.
 
Upvote 0
Cross posted Please Help - date/hour conditions

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,280
Members
449,220
Latest member
Excel Master

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