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 30 days free trial!
doc export graphics
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.
Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

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 30-day trial of Office Tab!

ot excel

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
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.
    Rajavelu · 4 months ago
    Dear sir,
    Here I have the daily workers efficiency. Now I need the column chart in a conditional formatting method. I want the graph in a different colors as per the average efficiency. Can you give me the solution?
  • To post as a guest, your comment is unpublished.
    Lewis · 7 months 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 · 10 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 · 1 years 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 · 3 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.
    Sourabh Jain · 3 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.
    raj · 3 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 · 4 years ago
    Go home
    Go home
    Go home