Conditionally Format one cell based on partial text of a different cell

Rosstamon

Board Regular
Joined
Sep 12, 2007
Messages
77
Hello all and happy Sunday.

I'm trying to use conditional formatting to do the following.

Cell F6 is a drop down box (Data Validation)
2 of the 4 selections contain the word "Consultant".

The target cells are B29 thru F33.

I'm trying to figure out how to create a conditional format for cells B29 thru F33 that says:
--If F6 contains the word "Consultant" then do not format these cells
--If F6 does not contain the word "Consultant" then FILL these cells RED

Any help would be most apprecaited.
I'm not well versed with VBA, so hoping to avoid it.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi

Try

First, select all the cells in range(B29:F33) you want formatted


Conditional formatting




New Rule


Use a formula to determine which cells to format


Format values where this formula is true copied :


=$F$6<>"Consultant"




set the parameter to formatting to coloring the cells ok


ok


Applies to =$B$29:$F$33 ok
 
Upvote 0
Hello all and happy Sunday.

I'm trying to use conditional formatting to do the following.

Cell F6 is a drop down box (Data Validation)
2 of the 4 selections contain the word "Consultant".

The target cells are B29 thru F33.

I'm trying to figure out how to create a conditional format for cells B29 thru F33 that says:
--If F6 contains the word "Consultant" then do not format these cells
--If F6 does not contain the word "Consultant" then FILL these cells RED

Any help would be most apprecaited.
I'm not well versed with VBA, so hoping to avoid it.
Select cells B29:F33 > Home>Conditional Formatting>New Rule>Use a formula

Formula is:

=NOT(ISNUMBER(SEARCH("Consultant",$F$6)))

Apply the format you want and click OK.
 
Last edited:
Upvote 0
JoeMo,
Many many thanks to you. This works exactly as I needed. I very much appreciate your help and wisdom.
 
Upvote 0
Hello,
Thank you for replying so quickly. This didn't work for me. It formatted the cells no matter what F6 said. I'm sure if I fiddled around with this one I could get it to work, but JoeMo's reply did work so I'll go with that. Thanks again for working on this.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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