Conditional Formatting using MATCH over 2 Columns

GallivantingOne

New Member
Joined
May 9, 2023
Messages
12
Office Version
  1. 365
Platform
  1. Windows
DateStartEndArenaHome TeamN/S/E/WAway TeamN/S/E/WDivision
04/03/202320:3021:30MPSKodiaks*NorthRaptorsNorthU9Div
04/04/202317:3018:30CDBStony SnipersWestScreaming SquirrelsNorthU11Div1
04/04/202319:4520:45CMMThe CedarsNorthBardownski'sNorthU11Div1A
04/04/202319:3020:30CTMIce HawksNorthSpursSouthU11Div2
04/04/202317:3018:30CVAGrowlers*WestThe StormSouthU11Div3
04/04/202320:0021:00GAThe Cedars BWestSilverback HerasWestU11Div4

I am using the above spreadsheet for scheduling hockey teams. I use Conditional Formatting on the Home Team and Away Team columns (E and G) based on the Division. The formula I have been using for these is:
=MATCH($E2:$E900,U18Div1,0) with a range of =$E$2:$E$900 in the "Applies to" field and then another line with the same formatting
=MATCH($G2:$G900,U18Div1,0) with a range of =$G$2:$G$900 in the "Applies to" field
This will change the background color of the teams so they are easier to identify in 900 lines of scheduling and the above formulas work for all the divisions

My questions is whether or not there is a way to combine these to search both columns E and G in one line of conditional formatting. With 18+ divisions it gets a bit cumbersome to deal with. I have tried using AND but I'm not sure it is compatible with the MATCH function. Perhaps I should be using something other than MATCH? Not sure. Any ideas would be welcome.

Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi @GallivantingOne. Thanks for posting on MrExcel.

Create only a conditional formatting.
Use the following formula:
Excel Formula:
=MATCH(E2,U18Div1,0)

"Applies to:"
Excel Formula:
=$E$2:$G$900


--------------
Let me know the result and I'll get back to you as soon as I can.
Cordially
Dante Amor
--------------
 
Upvote 0
Solution
That works. I was wondering why I had 2 list the full area instead of the just applies to field. Thanks for the knowledge!
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

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