Showing posts with label Excel. Show all posts
Showing posts with label Excel. Show all posts

Friday, May 11, 2012

Excel - Color row based on a Value

Excel - Color row based on a value


In Excel we will at times like to have the row colored automatically based on the values entered in the cell.
For example when the states is entered as Closed we would like to have the full row colored in Green.

 
 This effect can be achieved using Conditional Formatting in Excel 2007.
  • Select the row (All columns) which need the coloring effect.
  • Select the Home Tab and click Conditional Formatting
  • In the options select ManageRules 
  • Click New Rule 
  • Select the option Use a formula to determine which cells to format 
  • In the TextBox enter formula which will determine the Color (=$E4="WorkInProgress")
  • Click on the Format button and select the color to be applied to the Row
  • Click Ok
 Now enter the specific values in the Cell and you can see that the color of the row has changed automatically.

In this case entering the value WorkInProgress in the cell E4 will change the color of the Row.

 

Excel - Color cell based on value

Excel - Color cell based on value
In Excel we will at times like to have the cells colored automatically based on the values entered in the cell.
For example when the states is entered as Closed we would like to have the cell colored in Green.

This effect can be achieved using Conditional Formatting in Excel 2007.

  • Select the cell to get the coloring effect.
  • Select the Home Tab and click Conditional Formatting
  • In the options select Highlight cells Rules
  • In the Suboptions select Equal to
  • A new Popup opens with a Textbox and a DropDown
  • Enter the values for which the cell is to be colored in the Left side TextBox
  • Select the color to be applied from the right side DropDown
  • Click Ok

Now enter the specific values in the Cell and yu can see that the color of the cell has changed automatically.

Excel Dropdown in Cells

In EXCEL, there are occations where we want to restrict the user to enter/select only specific values in certain cells.

For example let us take a Status column, which can have values Open, Work In Progress, Closed & Pending clarification. If we allow the users to enter the values manually, chances are that each user will enter his own value, or there could be a typo error, to avoid all these we add a dropdown list to the cell and make the user to select from the specific list of value, here is how we do that.

In this sample i am using Excel 2007 version.

  • Select the cell which needs to have a DropDown.
  • In the Menu bar, select Data tab
  • Select Data Validation in the Data Tools group
  • Select List in the Allow Option
  • In the Source TextBox type the possible values seperated by commas.
  • Click OK.

That's it the free cell will now become a DropDown list restricting users to select values from the DropDown.