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
160
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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

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