Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coloring complete Row based on values from Columns

I need to color the complete Excel row based upon the value of a cell in column.

I have three columns (Item, Price and Status) and want to color the row if the Status value is:

  • DELIVERED (to Green)
  • REJECTED (to Red)
  • WIP (to Orange).
like image 741
user1494042 Avatar asked Jul 01 '12 08:07

user1494042


People also ask

How do you color a row based on a column value?

In the formula field, enter the following formula: =$C2=”Bob” Click the 'Format' button. In the dialog box that opens, set the color in which you want the row to get highlighted. Click OK.

Can you apply conditional formatting to an entire row?

Conditional Formatting is a feature in Excel that allows us to change the format of cells based on a set of rules or conditions. Conditional formatting can be applied to a set of selected cells, including an entire row.


1 Answers

You can use (non-VBA) conditional formatting for this

If your Status column was in column C then - having selected all the rows in the area of interest - you can use rules such as this to format the entire row based on the column C entries

=$C1="REJECTED" and pick Red
=$C1="WIP" and pick Orange etc

Change your column reference to suit

The sample below is from Excel 2010

{NB: Change your text case if necessary}

See Debra Dalgleish's site for more detail

enter image description here

like image 122
brettdj Avatar answered Nov 04 '22 13:11

brettdj