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


How to change bubble chart color based on categories in Excel?

If you want to change different bubble colors based on different categories in a bubble chart in Excel as below screenshot shown, this tutorial can help you.

Change bubble chart color based on categories

arrow blue right bubble Change bubble chart color based on categories

1. You need to copy your x axis values and paste them in a blank column next to your original data range firstly.


2. Then type the category names into the cells right above the data range, and keep a blank cell between every two categories. See screenshot:


3. Then in the cells under each category, type y, and type Bubble in to the cells under each blank cell. See screen shot below:


4. Type this formula =IF($A3=F$1,$C3,NA()) into the cell under Y cell, and drag the fill handle to the range you need.

Note: $A3 indicates the category name in your original data range, and F$1 indicates the category you need in this column, $C3 indicates y value in your original data range.


5. Then type this formula =IF(ISNA(F3),NA(),$D3) into the cell under Bubble cell and drag fill handle to the range you need.

Note: F3 indicates the cell left to the active cell, and $D3 indicates the bubble value in your original data range.


6. Select the new data range you create in above steps and click Insert > Other Charts > Bubble, and select the bubble type you need.


In Excel 2013, click Insert > Insert Scatter (X Y) or Bubble chart > Bubble.

Now you can see the same category with the same bubble color.


If you want to change chart color based on value, you can go to this tutorial How to change chart color based on value in 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.
    Jon · 1 years ago
    Nice except that the graph comes out with other values on the x axis than what is in the data table you make the graph on...
    • To post as a guest, your comment is unpublished.
      Anurag Halder · 3 months ago
      If you clear the cell that reads 'x' you should be able to get the values
  • To post as a guest, your comment is unpublished.
    racefface · 1 years ago
    Thanks for this guide - it's solved a big issue for me.

    Well, almost. I've got this set up, but also have Data Labels on the bubbles. However, I am having an issue with the Data Label dissapearing from the bubble when the Category (bubble colour) is changed. I've tried a few things, the thing that has come closest to solving the issue is:

    Changing all my data to the same category, configuring the Data Labels to the right format (the label content is coming from a range of cells), then changing all the data to the next category, and setting up the formats... repeating for all caegories. Once that is done then I can happily change the categories and the bubble colours change and the bubbles remain labeled...

    However.. If I save the document, close it and reopen then changing the category results in the bubble changing colour, but the data label on the bubble disspears. Looking at the settings nothing has changed but the label content does not show. Changing the cateogry back to the original value results in the label coming back..

    Has anyone seen this before? ... and if so, any ideas on a solution?

  • To post as a guest, your comment is unpublished.
    Casey Fong · 2 years ago
    continue from previous msg....
    X axis = period, Y axis = value, bubble = value with customer name
  • To post as a guest, your comment is unpublished.
    Casey Fong · 2 years ago
    Hi there,
    I would like to know is it possible to have the bubble's colour based on risk level with the following information availbale below and the colour of the bubble will depend on risk level (example, Medium = Orange, Low = Green, High = Red, Converted = Blue). I tried follow the example you showed above but couldn't get it working...

    customer Period Value Risk level
    A Jan-17 $15,000 Medium
    B Dec-16 $20,000 Low
    C Mar-17 $25,000 Converted
    D Feb-17 $10,000 High
    E Jan-17 $30,000 Medium
    F Apr-17 $8,000 Low

    Thanks in advance for your help!

  • To post as a guest, your comment is unpublished.
    Mel · 2 years ago
    I see that these steps work, but there is no explanation of why.
    for example you use the formula "=IF(ISNA(H10),NA(),$D10)", what does this mean and why are you using it.
    Is there a document available that not only shows a user how to change the colours but explains the process.