ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional formatting - Different cell value (https://www.excelbanter.com/excel-worksheet-functions/105443-conditional-formatting-different-cell-value.html)

ens

Conditional formatting - Different cell value
 
I need help in giving color to Column A cells based on the values in Column B
cells. For example:

A B
1 car y5
2 bike x3
3 toy y2
4 bird y5
5 cat x3

I want to turn the cell color yellow if any value in column B is y5 and
change the cell color yellow if any value in column B is X3. I have about
3000 values to do this for, so I want the same conditional formatting on all
of the columns.

Thanks in advance for your help

DonCam65

Conditional formatting - Different cell value
 
ens

In the first cell in A (say A3)
Conditional formatting
Use 'Formula Is"
Enter =B3="x3"
Format to selected colour
Add a second condition
Use 'Formula Is'
Enter =B3="y5"
Format to same (or another colour)
OK
Now with cell A3 selected
Format paint
Select by highlighting all the cells in col A to have this formatting
When you release the mouse click it will be done - magic!
Hope this helps
--
Don C


"ens" wrote:

I need help in giving color to Column A cells based on the values in Column B
cells. For example:

A B
1 car y5
2 bike x3
3 toy y2
4 bird y5
5 cat x3

I want to turn the cell color yellow if any value in column B is y5 and
change the cell color yellow if any value in column B is X3. I have about
3000 values to do this for, so I want the same conditional formatting on all
of the columns.

Thanks in advance for your help



All times are GMT +1. The time now is 03:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com