Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

Change chart color based on value in Excel

Sometimes, when you insert a chart, you may want to show different value ranges as different colors in the chart. For example, when series value (Y value in our case) in the value range 10-30, show the series color as red; when in value range 30-50, show color as green; and when in value range 50-70, show color as purple. Now this tutorial will introduce the way for you to change chart color based on value in Excel.

Change bar chart color based on value

Change line chart color based on value


Export graphics (Pictures/Charts/Shapes/All Types) from workbook to a folder as Gif/Tif/PNG/JPEG

If there are multiple type of graphics in a workbook, and you just want to export all charts across worksheet to a folder as gif of other type of picture, you can use Kutools for Excel's Export Graphics utilty, which only need 3 steps to handle this job .  Click for full-featured 60 days free trial!
doc export graphics
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.

arrow blue right bubble Change bar chart color based on value

Please follow the below steps to solve the problem on changing bar color depend on the point value.

1. Go to a blank range next to your data, and type the value range you need as below screenshot shown:

Note: In C1 and C2 are the smallest and the biggest values of the first value range from 10 to 30, and so on.

doc-color-chart-based-on-value-1

2. Then type the value ranges as headers into each relative cell.

doc-color-chart-based-on-value-2

3. Then in Cell C4, type this formula =IF(AND(C$1<$B4,$B4<=C$2),$B4,""), and drag the fill handle to the range you need. See screenshot:

Note: Cell C4 is the cell you want to get out the result, and in the formula, C$1 is the cell contains the smallest value you need in the value range, and C$2 contains the biggest value you need in the value range, $B4 is the cell you want to use.

doc-color-chart-based-on-value-3

4. Now you can insert a bar by selecting your original data only and clicking Insert > Bar > Bar.

doc-color-chart-based-on-value-4

5. Then click at the chart area, and it will highlight your original data range, see screenshot:

doc-color-chart-value

6. Now put the cursor on the green highlighting line (or red highlight line in Excel 2013) until it changes to cross arrow, then change source range to the range C3:E14 (the range includes the value range headers and the formula cells).

doc-color-chart-based-on-value-6

Now you can see the bar chart shown as below screenshot:

doc-color-chart-based-on-value-7


arrow blue right bubble Change line chart color based on value

If you want to change the line chart color as below screenshot shown, you can do as follow steps.

doc-color-chart-based-on-value-8

1. As well, you also need to type your value range into the blank range next to your original data.

Note: In C1 and C2 are the smalleset and the biggest values of the first value range from 10 to 30, and so on.

doc-color-chart-based-on-value-9

2. Then type the value ranges as headers into each relative cell.

doc-color-chart-based-on-value-10

3. Then in Cell C4, type this formula =IF(AND(C$1<$B4,$B4<=C$2),$B4,NA()), and drag the fill handle to the range you need. See screenshot:

doc-color-chart-based-on-value-11

4. Select the data range including the value range headers and the formula cells, and lick Insert > Line > Line. See screenshot:

doc-color-chart-based-on-value-12

Now you can see the line chart as below screenshot shown.

doc-color-chart-based-on-value-13

If you want to show the different series obviously, you can change their markers. Right click at the series and select Format Data Series > Marker Options, check Built-in, and select the marker you like from Type list. Change the series one by one.

doc-color-chart-based-on-value-14

In Excel 2013, right click a series and select the Format Data Series to open the Format Data Series pane; next click the Fill & Line tab > Marker, then expand the Marker Options section, check the Build-in option, click the Type box and specify a marker from the drop down list. See screen shot below:

doc-color-chart-based-on-value-15

And you can delete the Y value legend.

doc-color-chart-based-on-value-16

If you want to change the bubble color based on text name categories, please go to How to change bubble chart color based on categories in Excel.

Note: Before creating a line chart with different color for different value range shown as above screenshot, you’d better sort your original data.

Tip.If you want to quickly insert a created chart in any sheets across workbooks, please try to use the Kutools for Excel’s AutoText as shown in the following screenshot. It’s full function without limitation in 60 days, please download and have a free trial now.


Tabbed browsing & editing multiple Excel workbooks/Word documents as Firefox, Chrome, Internet Explore 10!

You may be familiar to view multiple webpages in Firefox/Chrome/IE, and switch between them by clicking corresponding tabs easily. Here, Office Tab supports similar processing, which allow you to browse multiple Excel workbooks or Word documents in one Excel window or Word window, and easily switch between them by clicking their tabs. Click for free 45-day trial of Office Tab!

ot excel

Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Lewis · 20 days ago
    Is there anyway I can do this to an already existing graph that a colleague made? For example, I'm tracking how productive people are and want anything 95%-105% to be green and anything else to be red; at the moment, anything 100%+ is green and anything below is red.
  • To post as a guest, your comment is unpublished.
    BSA · 3 months ago
    In the "change bar color based on value example", consider using the stacked bar chart as all the columns then will be centred on the x axis label.
  • To post as a guest, your comment is unpublished.
    TK · 9 months ago
    how do I remove the zeroes at the ends of the bars when I choose "show values" for the bars?
  • To post as a guest, your comment is unpublished.
    John Field · 2 years ago
    Re "Change bar chart color based on value" many thanks - I suggest using stacked bars or columns not clustered, then all the bars come evenly spaced even when they have different colors.
  • To post as a guest, your comment is unpublished.
    Dave · 2 years ago
    Extremely helpful, but I'm struggling to get it to work where there is just one data point that should be a different colour. Can you help?