If two cells in two cells have the same conditional formatting(Colour) then output text "Match" in a third cell

ExcelHellsBells

New Member
Joined
Sep 17, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hello,

Simple goal but not so simple answer according to Mr google...

I have 2 columns of data col#1 (B3:B105) Col#2 (D3:D105) which have conditional formating fill colour applied to them based on the number value in the cell. I want to implement a third column (F3:F105) to result in a "Match" or "True or False" output after comparing each cell row by row, e.g: B3(CF-Red)<--->D3(CF-Black) = "False", B4(CF-Black)<--->D4(CF-Black) = "True" or "Match".

There seems to be some methods in the link below that either work or don't work depending on excel version over the years and some VBA stuff (which I don't have a clue about but willing to give a go)


Ideally, I want this to happen in real-time so it populates as the numbers in column D are populated so they are compared row by row with the already populated column B.



would love some guidance, thank you!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi & welcome to MrExcel.
You can use a formula with the same rules as the CF to determine if B & D match.
 
Upvote 0
Hi & welcome to MrExcel.
You can use a formula with the same rules as the CF to determine if B & D match.

Wow, and here I was thinking that was not possible. I thought that you could not use the inbuilt functions in excel to match conditional formatting states of 2 cells purely based on their CF colour.
 
Upvote 0
actually thinking about it. I have a load of CF happening as it is based on each individual number not a range of numbers. It is based on the colours/numbers in roulette (1=red, 2 = black etc...)

would I need to repeat the formula for each individual instance then?
 
Upvote 0
For something like that I would recommend creating a lookup table similar to cols H & I and then you can use
+Fluff New.xlsm
ABCDEFGHI
1
2
31613FALSE0G
4115TRUE1R
5126TRUE2B
612 3R
724B
8275R
9116B
10287R
11168B
12259R
132810B
142311R
152712B
16113R
173514B
182215R
191016B
201917R
212918B
Master
Cell Formulas
RangeFormula
F3:F6F3=IF(D3="","",FILTER($I$3:$I$39,$H$3:$H$39=B3)=FILTER($I$3:$I$39,$H$3:$H$39=D3))
 
Upvote 0
Thank you. That is exactly what I was looking at here:


will give it a go and let you know
 
Upvote 0
For something like that I would recommend creating a lookup table similar to cols H & I and then you can use
+Fluff New.xlsm
ABCDEFGHI
1
2
31613FALSE0G
4115TRUE1R
5126TRUE2B
612 3R
724B
8275R
9116B
10287R
11168B
12259R
132810B
142311R
152712B
16113R
173514B
182215R
191016B
201917R
212918B
Master
Cell Formulas
RangeFormula
F3:F6F3=IF(D3="","",FILTER($I$3:$I$39,$H$3:$H$39=B3)=FILTER($I$3:$I$39,$H$3:$H$39=D3))

Thank you, this worked. For some reason my column F had turned into a text field format which messed me about a bit then I tried in another spreadsheet to verify and it worked as a General cell

thank you so much!
ok I am getting a "'VALUE!" error message show up
BDFJK
 
Upvote 0
Do you have a #VALUE! anywhere in your lookup table?
 
Upvote 0
Do you have a #VALUE! anywhere in your lookup table?

sorry, it works fine, that (the 'VALUE!) was something I had in the post before I went back to have another go at the spreadsheet but didn't realise it was still in my comment. I don't think I can go back and edit the comment
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,462
Members
449,085
Latest member
ExcelError

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