How do I do conditional formatting with today's date, but which also includes other text?

Joined
Nov 15, 2023
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

I've been trying to find a way to adopt conditional formatting for a cell which contains today's date. I've been able to do this successfully, but if I include other text in the cell (for example, a time - see image attached), the conditional formatting does not work.

What would be the way around this? Does anyone know of a formula?

Many thanks :)
 

Attachments

  • Screenshot 2023-11-15 102602.png
    Screenshot 2023-11-15 102602.png
    2.5 KB · Views: 8
What I found from the screenshot is that the cell with current date contains date and what we are searching for is a text. Try adding some time to it and then check.
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
What I found from the screenshot is that the cell with current date contains date and what we are searching for is a text. Try adding some time to it and then check.
Thanks! I see what you mean about text, but when I turn the dates into text format, they come up like '45239' instead of 15/11/2023, for example?
 
Upvote 0
Check as below, particularly Cell L7, the solution is in cell L8

Book1
JKLMN
1
2
3
423/11/23 @ 10:40
524/11/23 @15:57
617/11/23 @ 10:45
711/17/23
817/11/23 @ 00:00
9
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L:LExpression=FIND(TEXT(TODAY(),"dd/mm/yy"),L1)textNO
 
Upvote 0
Check as below, particularly Cell L7, the solution is in cell L8

Book1
JKLMN
1
2
3
423/11/23 @ 10:40
524/11/23 @15:57
617/11/23 @ 10:45
711/17/23
817/11/23 @ 00:00
9
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L:LExpression=FIND(TEXT(TODAY(),"dd/mm/yy"),L1)textNO

I think I'm nearly there, but now it seems as though the wrong date gets highlighted?
 

Attachments

  • excel1.png
    excel1.png
    41.3 KB · Views: 5
Upvote 0
Check as below, particularly Cell L7, the solution is in cell L8

Book1
JKLMN
1
2
3
423/11/23 @ 10:40
524/11/23 @15:57
617/11/23 @ 10:45
711/17/23
817/11/23 @ 00:00
9
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L:LExpression=FIND(TEXT(TODAY(),"dd/mm/yy"),L1)textNO

It's worked! Thanks so much for your persistence and patience :)

P.s: could you tell me why it had to be L1 and not L13 in the formula?
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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