Conditional Formatting Multiples Ranges

JeannetteE

Board Regular
Joined
May 19, 2016
Messages
53
HI,

I'm trying to conditionally format a range of cells based on a single cell value in each range.

I have 10 Ranges in Column C, Range C23:C32, if C23 contains "MI" then it fills all cells in the range with a color,
or if C23 contains "P1" then it is a different color, if it contains anything else it stays the default color.
The next range is C33:C42 etc

This then needs to be applied from column C to Column PF, where the Range for column D is then D23:D32 and D23 contains "MI" etc.
I would prefer to do it directly in the spreadsheet but if need be can do it in VBA.

Any help would be greatly appreciated.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi

Use conditional format on C23, like for the first condition use the formula

=(C$23="MI")

Then apply it to $C$23:$PF$23
 
Upvote 0
Hi

Use conditional format on C23, like for the first condition use the formula

=(C$23="MI")

Then apply it to $C$23:$PF$23

Thanks for the reply :) that only applies the color if C23 = "MI" whereas I need Contains or Starts with.
 
Upvote 0
Hi

Use conditional format on C23, like for the first condition use the formula

=(C$23="MI")

Then apply it to $C$23:$PF$23

Thank you pgc01, I've used what you gave me and changed the Formula to =FIND("MI", C$23) and that worked a treat.
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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