# Making conditional formatting recognize more than one entry

#### SSG T

##### New Member

This is probably a very simple thing to do but I can't seem to get it to work.
I need to set up conditional formatting to color a range of cells if certain words are entered. I need to put more than one word in each condition but can't seem to figure it out. i.e. if i want that words DISCHARGE & PROFILE to both highlight green how do i write the formula so they can be entered in a single conditional formatting block?

### Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Re: Making conditional formatting recognize more than one en

Formula Is

=A1=OR("DISCHARGE","PROFILE")

Re: Making conditional formatting recognize more than one en

lenze said:
Formula Is

=A1=OR("DISCHARGE","PROFILE")

I'm working along the same lines but can't get that to work???

Re: Making conditional formatting recognize more than one en

I tried this formula modeled after the one posted above but it's not working

FORMULA IS
=A3:A92=OR("DISCHARGE","PROFILE")

Is this right?

Re: Making conditional formatting recognize more than one en

i tried this formula on cell A5 & that didn't work either.

FORMULA IS

=A5=OR("DISCHARGE","PROFILE")

Anyone else have any ideas?

Re: Making conditional formatting recognize more than one en

Try this (change other to your term)

=OR(\$B\$2="discharge", \$B\$2="other")

Re: Making conditional formatting recognize more than one en

Thanks GorD, that worked great, is there a way to get that to work for a range of cells or do I have to set each cell up seperately?

Re: Making conditional formatting recognize more than one en

Once you've set it up for one cell (lock cells as required ) and then just use the format painter (paint brush) and paint over the cells you want to format

Re: Making conditional formatting recognize more than one en

OK, that works, but... it paints the "target" cell as the original one you formatted.

ie

=OR(\$A\$3="DISCHARGE",\$A\$3="PROFILE")

works great in cell A3 but the formula reads the same in cell A4,A5, etc, and therefore reads cell A3 to check the conditions.

Is there just not an easy way to do this for a range of cells?

Re: Making conditional formatting recognize more than one en

Remove the appropriate dollar signs from the ranges in the conditional format formula first.

Replies
1
Views
130
Replies
2
Views
174
Replies
2
Views
367
Replies
8
Views
449
Replies
3
Views
286

1,217,678
Messages
6,137,945
Members
450,100
Latest member
mscetr

### 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.

### Which adblocker are you using?

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

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