downwithjunk

New Member
Joined
May 30, 2013
Messages
16
Any help would be greatly appreciated.

I have a list of inventory (col A:C) with 3 criteria. I'm trying to figure out how to add conditional formatting to the table on the right (col E:I) that highlights the cells (g2:i10) if they are present in the list on the left. I've marked the cells with an "x" if they should be highlighted...for illustrative purposes.


SizeType123
ApplesS2ApplesSx
OrangesS3ApplesMx
PearsM1ApplesL
OrangesL2OrangesSx
ApplesM1OrangesMx
ApplesM1OrangesLx
OrangesM2PearsSx
PearsS2PearsMx
PearsL

<tbody>
</tbody>
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hello, let's assume your first table lives in A:C and the second live in E:I. Follow these steps:

1. Select cells G2
2. Click Conditional Formatting -> New Rule -> Use Formula to determine which cells to format
3. In the formula box, use this formula: =SUMIFS($C:$C,$A:$A,$E2,$B:$B,$F2)=G$1
4. Choose your desired format and click OK
5. Click Conditional Formatting -> Manage Rules and change the Applies to box from =$G$2 to =$G$2:$I$10
6. Click ok and check to make sure it is working correctly.

Let me know how this does!
 
Upvote 0
Just realized your list contains duplicates (for example Apples M Type 1). Use this formula in step 3 instead of the one I gave you:
=IFERROR(SUMPRODUCT(($A$2:$A$9=$F2)*($B$2:$B$9=$G2)*(($C$2:$C$9)/COUNTIFS($A$2:$A$9,$F2,$B$2:$B$9,$G2))),0)=H$1
 
Upvote 0
Just realized your list contains duplicates (for example Apples M Type 1). Use this formula in step 3 instead of the one I gave you:
=IFERROR(SUMPRODUCT(($A$2:$A$9=$F2)*($B$2:$B$9=$G2)*(($C$2:$C$9)/COUNTIFS($A$2:$A$9,$F2,$B$2:$B$9,$G2))),0)=H$1

This resulted in i2:i10 being highlighted, instead of the various cells.

but then i realized the columns were shifted, so i tweaked the formula to the following, and it worked. THANKS!!!!!!

=IFERROR(SUMPRODUCT(($A$2:$A$9=$E2)*($B$2:$B$9=$F2)*(($C$2:$C$9)/COUNTIFS($A$2:$A$9,$E2,$B$2:$B$9,$F2))),0)=G$1
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,755
Members
449,094
Latest member
dsharae57

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