简体   繁体   中英

Conditional Formatting TODAY() with Date + Time in cell

What I am trying to do is highlight cells that contain both a date and time together, I would like it to ignore the time and highlight the cell if the date is equal to TODAY.

For example:

-| A | B | 1 | Option1 | 06/17/2020 0800 | 2 | Option2 | 06/17/2020 1500 | 3 | Option1 | 06/18/2020 2300 | 4 | Option1 | 06/20/2020 0800 |

I would want B1 and B2 highlighted if today was 06/17/2020.

I tried a few different formulas in conditional formatting I found on Google, but with no luck. Thank you!

Use a rule based on the following formula:

=--(LEFT($B1,10))=TODAY()

Apply to column B.

在此处输入图像描述

Note that this assumes that the date portion is always in the format mm/dd/yyyy, ie it takes up the 10 left characters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM