0% found this document useful (0 votes)
41 views8 pages

Conditional Formatting For Column or Bar Charts

Uploaded by

naveenkreal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
41 views8 pages

Conditional Formatting For Column or Bar Charts

Uploaded by

naveenkreal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
— Menu — Home » Visualization » Conditional Formatting for Column or Bar Charts Conditional Format Charts Last Updated on: November 30, 2022 ng for Column or Bar This tutorial will show you how to use conditional formatting for column or bar charts in Excel using multiple data series. Conditional formatting is a must-have feature in Excel if you want to highlight cells or ranges based on one or more criteria, or you can play with it if you are working with shapes. What about charts? How to use conditional formatting in a Column or Bar chart? Follow these steps to add conditional formatting with a column or bar chart. 1. Define intervals and create groups using the IF function. 2. Insert a Bar or Column Chart. 3. Format chart series (Gap width and Overlap). 4, Apply different colors for each group. #1 - Define intervals using the IF function In the example, we want to use conditional formatting rules for a bar chart and apply three different colors. To do that, set up the rules using upper and lower limits. * Series 1: Sales are less than $2000 * Series 2: Sales are between $2000 and $7500 * Series 3. Sales are greater than $7500 2 Search (Ait File Home insert Page Layout Formulas Data Review View Developer DataXL be 7 Se =tcacguss sca,Na) Aa 8 | c D e | Ff S| H Lu J 3| chery $11@o|__ 1180) #N/A FINA Sales < 2000 4 | banana $4200 #N/A 4200 #N/A 2000 =< Sales =< 7500 5_| melon $1,800 1800 #N/A #N/A Sales > 7500 6 | kiwi $4,900 #N/A 4900 #N/A 7| lemon $5,400 #N/A 5400 #N/A 8 | apple $7,700 #N/A #N/A 700 2000 ¢ | mango $3,800 #N/A 3800 #N/A 7500 10) strawberry $9,500 #N/A eN/A 9500 i EXCELKID.COM 2 . The next step is to create three data series based on the given intervals for the chart. For example, to get the data points for the first chart series, we use the following formula: =IF ($C3<$H$8, $C3,NA()) The formula compares the C3 value with the lower limit; in other words, if C3<2000, the formula will return the value in C3, else, apply the NAQ formula to get the #N/A output. The second formula returns numeric values where the Sales are between 2000 and 7500. =IF (AND ($C3>=$H$8, $C3<=$H$9) , $C3,NA()) Because we have two conditions, combine the IF and AND functions. In this case, if the Sales are greater than 2000 and less than 7500, the formula will return C3, else the result is #N/A. Last but not least, get the data points where the Sales are greater than 7500. =IF($C3>$H$9,C3,NA()) The third series will appear if the Sales exceed the upper limit. #2 -- Create a Bar or Column Chart To create a bar chart (or column chart), select the data, and insert a new chart. You can use select non-contiguous ranges by pressing and holding the Ctrl key. For example, select the B2:B10 range, then press the Ctrl key. Next, select the D2:F10 range, and finally, release the key. fle Home insert Page Layout Formula: Data Review View Develop fF Ge my ee Bem ee GEE A @ PivatTable Recommend Toi- Pictures % lens Ehscrciabot- | a, | 20cm Y vatables + BWModels ~ & Tables: Mustrations nil A MA a 2 <| fe Groupt 2-0 Calan = 8 0 $1,180 #N/A $4,200 N/A eae $1,800 N/A = $4,900 #N/A $5,400 4N/A mee $7,700 7700 $3,800 #N/A = S = 10| strawbeny $9,500 9500 u UD. More Column Chr. 2 : = Al EXCELKID.COM Locate the Charts Group on the ribbon to insert a new chart and select a bar chart. AA 8 € ° 2 | 3 4| svawberry 5 i 6 | apple 7 | ena 8 ‘kt a | ime 10 banana 1 ‘oat. 12 B | 5 16 o 2000 Chart Title 000 6000 #000 0000 =Group3 Group? Grout EXCELKID.COM #3 - Format chart series (Gap width and Overlap) The new charts look noisy at first glance. We have random gaps between bars. Select one of the bars, right-click on it to align the three series properly, and select Format Data Series. A new sidebar will appear on the right side of the main window. Improve the conditional formatting chart!, Set the Gap Width variable to 20% and the Series Overlap property to 100%. Then, if you broaden the bars, we will see a chart with one visible series instead of three. Excel always hides two data series since we use the #N/A values for the unnecessary data points. After the formatting steps, the chart looks like the below: Format Data Series ~ * Chart Title bape & 2 (ll Series Options Plot Ses On © Beary Ae Secondary Ae Sones Qvetig ——A_ 100% opiwith #208, EXCELKID.COM #4 - Apply different colors for each group Conditionally formatted charts use the same logic as regular cell or range formatting, The next step is to select the colors for each group and assign them to the visible data series. In the example, we use the standard RAG-reporting colors (red, amber, and green) to visualize data. Format Data Series + * Series Options v OQ m Sales by Products strawberry sols Gratin Bewreortesure sil kiwi mon Pater Automatic banana [__ apple iss lemon hen =z La cherry Inve i nentice © 1000 2000 3000 4000 000 6000 7000 #000 S000 Py Se Tnrpurengy Ho EXCELKID.COM To replace the standard Office theme, select the bar. Then, under the Fill section, click Solid fill and pick your preferred color. Repeat this step twice for the other two series. Finally, add a chart title, clean up the chart, and remove unnecessary gridlines and borders. Final Words When you apply conditional formatting on a line or a bar chart, you can clearly show the performance categories. Good to know that if you change the values in the data table, Excel will update the colors automatically. Download the practice file. Additional resources: * Change shape color based on cell value © Forecast Chart Category: im Visualization jate Dashboard Tools Bullet Charts » ii Mekko Chart Istvan Vozar Istvan is the co-founder of Visual Analytics Ltd. He writes blog posts and helps people to reach the top in Excel. Dual Gauge Chart 9 Polar Area ScoreMeter ScoreMeter Charts » ull Variance ae . TeeMap Traffic Light Charts » : ii a =e Gantt Chart Variance 1 Waterfall Charts » = Og Chart Pro Dashboard Add-in for Excel, Fully automated. Lightweight. No coding skills required Get it now Topics Formulas Functions Excel Dashboard Shortcuts Excel Tables Data visualization in Excel Privacy Policy Terms of Service Refund Policy Contact us About Us © 2019-2022. ExcelKid is a trademark of Visual Analytics Ltd,

You might also like