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

Register

or
0
0
0
s2smodern

## 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.

#### Change bar chart color based on value

###### Amazing! Using Tabs in Excel like Firefox, Chrome, Internet Explore 10!

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.

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

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:

 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.

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

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

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).

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

#### 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.

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.

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

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:

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

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

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.

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:

And you can delete the Y value legend.

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.

### Recommended Productivity Tools

#### Office Tab

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

#### Kutools for Excel

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

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,

Say something here...
symbols left.
###### or post as a guest, but your post won't be published automatically.
• To post as a guest, your comment is unpublished.
· 1 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.
· 1 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?
• To post as a guest, your comment is unpublished.
· 1 years 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.
· 2 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.
· 3 years ago
Go home
Go home
Go home