简体   繁体   中英

Excel Conditional Format

I have the following spreadsheet:

...

I need a conditional formatting formula that colors the dates in the grid red if the are on the same day, same time, and are of the same event type (in column A as white text). I've tried a bunch of different countifs . The current formula is =AND(COUNTIFS($A$5:$A$20,$A5,I$5:I$20,$I5)>1,I5<>"") . It doesn't discriminate by type, or day really, like I want. Any ideas?

There's one $ sign too many in your formula. Change the $I5 to I5.

Before

=AND(COUNTIFS($A$5:$A$20,$A5,I$5:I$20,$I5)>1,I5<>"")

After

=AND(COUNTIFS($A$5:$A$20,$A5,I$5:I$20,I5)>1,I5<>"")

在此处输入图片说明

Be aware, though, that with that formula alone, you won't be able to figure out WHICH event type has duplicates, especially if the duplicates are from different event types, like this:

在此处输入图片说明

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