Applying conditional formatting in many sheets in the same workbook

Ramadan

Board Regular
Joined
Jan 20, 2024
Messages
117
Office Version
  1. 2021
Platform
  1. Windows
I use this formula in condition formatting to change the row color red based on matching value between 2 sheets in the same workbook =SUMPRODUCT(('Stop Work'!$D$8:$D$500=$C10)*('Stop Work'!$K$8:$K$500="Open"))

the formula says (if "D" in "stop work" sheet = any cell of "C" in this sheet and "K" in "stop work" sheet = "open" then color the row in red

and because this rule is repeated in many sheets in the same workbook and some cells value might be the same in other sheet so I get wrong result so I try to add another condition to make the formula check if the adjacent cell to "D" in stop work sheet "E" is equal to one fixed cell lets say "$A$5" in the active shhet ((for example (if C10 in this active sheet = one of "D" cells in stop work sheet and "K10" also in stop wrok sheet is ok = "open" so also to check if the adjacent cell "E10" in stop work sheet = A5 in this sheet)

I hope I could expalined it well

thank you in advance
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I have tried this formula and it works

=SUMPRODUCT(('Stop Work'!$D$8:$D$500=$C10)('Stop Work'!$K$8:$K$500="Open")('Stop Work'!$C$8:$C$500=$B$2))

thank you anyway
 
Upvote 0
Solution

Forum statistics

Threads
1,226,562
Messages
6,191,766
Members
453,678
Latest member
soneill

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