Multiple Criteria Conditional Format

MrCameronExcel

New Member
Joined
Apr 21, 2017
Messages
43
Office Version
  1. 365
Platform
  1. Windows
Hello,

I would like to apply conditional formatting into a matrix based on multiple criteria and table values.

The below matrix of flat numbers is where I would like conditional formatting applied to. The second table below is where I need to cross reference data.

Criteria:
If the Block (Table 2) matches the Block (Table 1), and the Flat (Table 2) matches the Flat (Table 1 - matrix), then conditional format the flat number in the matrix (Table 1) based on the number in the Helper Column for Conditional Formatting (Table 2).

Any help or pointers is much appreciated!

Thank you

TABLE 1
Block A
FloorFlat No.
1st1234567
2nd891011121314
3rd15161718192021


TABLE 2
SurveyHelper Column for Conditional FormattingBlockFlat
No Survey Info1Block A
1​
Potential ACM2Block A
2​
Sufficient Clear3Block A
3​
Sufficient Clear3Block A
4​
Sufficient Clear3Block A
5​
Sufficient Clear3Block B
1​
Sufficient Clear3Block B
2​
No Survey Info1Block B
3​
Potential ACM2Block B
4​
Sufficient Clear3Block B
5​
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I achieved the correct result in a column returning True/False using the formula below, but for some reason the same formula didn't work when used for conditional formatting all the relevant cells in the matrix

=AND(COUNTIF($J$6:$P$28,$E2),$D2="Bray", $B2=3)

Note* the exact column or row is just based on how I have the tables shown on my spreadsheet
 
Upvote 0
Solved it.

Used the below formula (specific to my spreadsheet).

=IF(INDEX($B$2:$B$642, MATCH("Block A" & I6, $D$2:$D$642 & $E$2:$E$642,0))=3,1,0)
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,215,770
Messages
6,126,791
Members
449,336
Latest member
p17tootie

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