Conditional Formatting and Formula

Tennisguuy

Well-known Member
Joined
Oct 17, 2007
Messages
564
Office Version
  1. 2016
Platform
  1. Windows
I am not sure if this can be easily done but I thought I would ask.

I have a spreadsheet with values in rows B2:BI30 and some value in rows B30:BI55. If any of the values in row B30:BI30 are found in rows B2:BI2 I want the values in rows B30:BI55 to bold and turn red. If any of the values in row B31:BI31 are found in rows B3:BI3 I want the values in rows B31:BI31 to bold and turn red and so forth and so forth until row B55.

I was wondering if a formula could be done without having to do a conditional formatting for each individual rows from B30:B55
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Your references are a bit confusing (for me, anyway), but you could probably do this with a COUNTIF() function
 
Upvote 0
I used the following formula and it works

=COUNTIF(B30:AE30,B2)>=1 it applies to cell B30

Is there a way to use this or turn this formula into an array so that it applies from cells B30:B55 so I don't do a separate conditional format for cell B31, B32 etc
 
Upvote 0
I got it to work. I just changed the applies to in conditional formatting to B30 to B30:B55.
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,031
Members
449,205
Latest member
Eggy66

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