Log in  \/ 
x
or
 Use Facebook account  Use Google account  Use Microsoft account  Use LinkedIn account
x
x
Register  \/ 
x

or
 Use Facebook account  Use Google account  Use Microsoft account  Use LinkedIn account

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


Count by Color

In some cases, you may have a range of calues with multiple colors, and what you want is to count/sum values based on same color, how can you quickly calculate?
With Kutools for Excel's Count by Color, you can quickly do many calculations by color, and also can generate a report of the calculated result.
doc count by color

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:

doc attention 1  Kutools for Excel's Auto Text, collect all formulas to a group as auto text, you can insert them anytime as you want whithout remembering! Free Download Now!

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.

Navigation--AutoText (add usually used charts to AutoText pane, only one click when you need to insert it in any sheets .)

doc autotext chart

Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

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.
    John Field · 7 months 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 · 8 months 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?
  • To post as a guest, your comment is unpublished.
    Sourabh Jain · 10 months ago
    Greetings

    This does not seem to work in Excel 2016 for Mac. All I get are Colored Horizontal Lines for each X Axis Observation instead of a Multicolored Line Chart. Please help.
  • To post as a guest, your comment is unpublished.
    raj · 1 years ago
    Very helpful. Thank you. But have one query - How do you customise the colours ?
  • To post as a guest, your comment is unpublished.
    Go home · 2 years ago
    Go home
    Go home
    Go home