Format all cells based on their values rule is the first rule in the New Rules option of conditional formatting. In this option excel cells are formatting on the base of their values as its name.
In this chapter you will learn 4 type of format style
To apply “Format all cells based on their values” rule below are the steps
- Select the range on which you want to apply the conditional formatting
- As in below image select “B2:G9”
![Data sets to apply the conditional formatting](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Comditinal-Formatting-1.jpg)
- Go to Home tab>>Conditional Formatting>>New Rules
![New Rules Option in conditional Formatting](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-32.jpg)
- New formatting rule window will be opened.
- Select Format all cells based on their values option, however this is by default selected.
![New formatting rule window](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-33.jpg)
There are four option is available in format Style-
![format Style](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-39.jpg)
1. 2-Color Scale:
2-Color Scale formatting style is default selected. to apply this formatting below are the steps.
- You can take Number, Percent, Formula or Percentile in place of Lowest Value
![Minimum and Maximum Type option](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-34.jpg)
- We have selected Number here and putting value minimum 20 and maximum 200
![Minimum and Maximum values](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-35.jpg)
- Click on OK button to apply this conditional formatting.
- Data set with this conditional formatting will look like below image.
![Data set after applying conditional formatting](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-36.jpg)
2. 3-Color Scale:
below are the steps to apply 3-Color Scale formatting style-
- Select 3-Color Scale option in Format style
- Choose the type here we are taking type as Number for Minimum, Midpoint and Maximum
- Put values for Number for Minimum, Midpoint and Maximum
![3-Color Scale Formatting Style](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-37.jpg)
- Click on OK button to apply this conditional formatting.
- Data set with this conditional formatting will look like below image.
![Data Set after applying the conditional formatting](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-38.jpg)
3. Data Bar:
below are the steps to apply Data bar formatting style-
- Select Data Bar option in Format style
- Select a option from type drop down for Minimum and Maximum (here we have taken Number)
- Put the value for Minimum and Maximum .
- Select fill option Solid or Gradient Fill (here we have taken Gradient Fill )
![Data bar Option in Conditional Formatting](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-40.jpg)
- Click on OK button to apply this conditional formatting.
- Data set with this conditional formatting will look like below image.
![Data Set after applying the conditional formatting](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-41.jpg)
We can display bars only (hide the numbers). Tick the “Show Bar Only” option
![Show Bar Only option](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-42.jpg)
- Click on OK button to apply this conditional formatting.
- Data set with this conditional formatting will look like below image.
![Data Set after applying data bar only](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-43.jpg)
3. Icon Sets:
below are the steps to apply Icon Set formatting style-
- Select Icon Set option in Format style
- Select a Icon Style from the list.
![Icon Set Option](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-44.jpg)
- Select type drop down, here we are select number.
- Put the value, here we are we are taking Green light when cell value is equal to or greater than 150, Yellow light when cell value is less than 150 and equal to or greater than 100 and Red light when cell value is less than 100.
![Icon Set Conditional formatting window](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-46-564x381.jpg)
- Click on OK button to apply this conditional formatting.
- Data set with this conditional formatting will look like below image.
![Data after applying traffic light conditional formatting](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-47.jpg)
We also can show Icon only. We can change the Icon for any condition.
Below is the list of Icons available in Excel 2013
![Icon List in Excel 2013](https://www.pk-anexcelexpert.com/wp-content/uploads/ConditionalFormatting/Conditional-Formatting-48.jpg)