Condtional Formatting - Date and Time within 15 minutes of each other

Status
Not open for further replies.

eli_m

Board Regular
Joined
Jun 2, 2022
Messages
155
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I currently have this helper column:
1684995793138.png


It combines two columns together using this formula:
Excel Formula:
=IF([@[Planning Date]]="N/A","",
IF(ISFORMULA([@[Planning Time]]),"",
CONCATENATE(TEXT([@[Planning Date]],"dd/mm/yy")," ",TEXT([@[Planning Time]],"hh:mm am/pm"))))

I want to make it so that the cells show up RED if any of the rows are less than 30 minutes (29 minutes to be exact) from each other.

What would be the best way and formula for this in conditional formatting?

Thanks in advance!
 
Ok I managed to solve it but for some reason when there is a duplicate time only one of them turn red:

1685004368028.png


or

1685004379297.png


How do I make both times turn red?
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Maybe apply the Highlight Duplicates CF to the range and just choose your own style of formatting...
 
Upvote 0
Maybe apply the Highlight Duplicates CF to the range and just choose your own style of formatting...
Ah that did the trick!

One last thing:

This turns red:
1685006523808.png


but the 02:40pm should also turn red as I want to show both times as clashing. how do I do that?
 

Attachments

  • 1685006154028.png
    1685006154028.png
    1.6 KB · Views: 5
  • 1685006209077.png
    1685006209077.png
    2.1 KB · Views: 4
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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