Link to home
Start Free TrialLog in
Avatar of cakirfatih
cakirfatih

asked on

Conditional formatting

Hi guys,
I want to change the fill color of a row based on the value of one of the cells in that row.
I have colums from A to G. the G column is my Status column, and it can get values of U, F or null

I want to change the fill color of the rows from A to G based on the above U and F values.
lets say blue if it is U and yellow if it is F.

can this be done using conditonal formatting? or it requires a macro?

thanks
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)
Flag of United States of America image

Use the following formulas:

=$U1="U"

and

=$U1="F"

To add conditional formatting to a cell select the cell you want to format. Choose the menu Format->Conditional Formatting... Change the dropdown from “Cell Value Is” to “Formula Is” and enter the above formula. Click Format and then the Pattern tab. Choose a color. Click OK and OK again.

Kevin
You can add multiple conditions for the same cell by clicking the Add>> button in the conditional format dialog. Each condition can have a unique color.

Kevin
Sorry, missread the columns:

=$G1="U"

and

=$G1="F"

Kevin
Avatar of cakirfatih
cakirfatih

ASKER

Kevin,
Where do i add this formula?
and can i change the fillcolor of entire row,not only the G1 cell?
ASKER CERTIFIED SOLUTION
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks for the answer Kevin