Conditional formatting

Bob L

New Member
Joined
May 10, 2020
Messages
44
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all,

If we use the example below, if we take every Cake in P1, they both have the same date. The only time it doesn't work, it's with Pie in P4, so I would need this cell to be highlighted (both can be highlighted, not just one). I only compare product with the same product (so Cake with Cake and not with Pie) and the same period. Those who doesn't match must be highlighted.

Is it possible?

Thanks in advance.

ProductPeriodDate
CakeP12020-01-01
CakeP12020-01-01
CakeP22020-02-01
CakeP32020-03-01
CakeP42020-04-01
PieP32020-03-01
PieP42020-03-01
PieP42020-04-01
DonutP12020-01-01
DonutP22020-02-01
DonutP22020-02-01
DonutP32020-03-01
DonutP32020-03-01
DonutP42020-04-01
DonutP52020-05-01
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
How about

+Fluff New.xlsm
ABC
1ProductPeriodDate
2CakeP101/01/2020
3CakeP101/01/2020
4CakeP201/02/2020
5CakeP301/03/2020
6CakeP401/04/2020
7PieP301/03/2020
8PieP401/03/2020
9PieP401/04/2020
10DonutP101/01/2020
11DonutP201/02/2020
12DonutP201/02/2020
13DonutP301/03/2020
14DonutP301/03/2020
15DonutP401/04/2020
16DonutP501/05/2020
Data
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:C16Expression=COUNTIFS($A$2:$A$16,$A2,$B$2:$B$16,$B2,$C$2:$C$16,"<>"&$C2)>0textNO
 
Upvote 0
How about

+Fluff New.xlsm
ABC
1ProductPeriodDate
2CakeP101/01/2020
3CakeP101/01/2020
4CakeP201/02/2020
5CakeP301/03/2020
6CakeP401/04/2020
7PieP301/03/2020
8PieP401/03/2020
9PieP401/04/2020
10DonutP101/01/2020
11DonutP201/02/2020
12DonutP201/02/2020
13DonutP301/03/2020
14DonutP301/03/2020
15DonutP401/04/2020
16DonutP501/05/2020
Data
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:C16Expression=COUNTIFS($A$2:$A$16,$A2,$B$2:$B$16,$B2,$C$2:$C$16,"<>"&$C2)>0textNO
Yep, it works perfectly! Thank you!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,517
Messages
6,114,085
Members
448,548
Latest member
harryls

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