How to Color an Excel Bubble Chart Based on Value (2 Methods)

Method 1 – Color Bubble Chart Using Single Series Data Values

This method of creating a bubble chart is quite simple. You can set the color of the bubbles based on value with just a few clicks.

We’ll use this dataset that has the ages and heights of four students:

Color Bubble Chart in Excel Using Single Series Data Values

Steps

  • Select your dataset by dragging and highlighting the relevant cells.
  • Go to the Insert tab and click on the Insert Scatter (X, Y) or Bubble Chart dropdown.
  • Choose the Bubble option from the dropdown.

Color Bubble Chart in Excel Using Single Series Data Values

  • Excel will generate a bubble chart with a single color for all bubbles.

Color Bubble Chart in Excel Using Single Series Data Values

  • To change the color of individual bubbles:
    • Right-click on any bubble.
    • Select Format Data Series.

  • In the new window, go to Fill and Line.
  • Choose Vary colors by point.

  • Excel will format the bubbles with different colors based on their values.

Read More: Excel Bubble Chart Size Based on Value


Method 2 – Use Excel ISNA and NA Functions

We can utilize these two functions to retrieve values from the dataset and determine the color of the bubble chart based on those values. The ISNA function in Excel verifies whether a cell contains a #N/A error. If any of the cells contain the #N/A error, the function returns TRUE; otherwise, it returns FALSE. Similarly, the NA function returns the #N/A error.

Steps

  • Assume you have a dataset with two bubble categories (A and B), each with X and Y coordinates and a Bubble column denoting bubble size.
  • Copy values from the first X column to the second X column.

How to Color Excel Bubble Chart Based on Value

  • In cell G6, enter the formula:
=IF($B6=G$4,$D6,NA())
  • Press Enter.

How to Color Excel Bubble Chart Based on Value

How to Color Excel Bubble Chart Based on Value

  • In cell H6, enter:
=IF(ISNA(G6),NA(),$E6)
  • Copy this formula down as well.
  • Repeat for columns I and J.

How to Color Excel Bubble Chart Based on Value

  • Go to the Insert tab and select 3-D Bubble from the Insert Scatter (X, Y) or Bubble Chart dropdown.

How to Color Excel Bubble Chart Based on Value

  • You’ll see an empty chart box.
  • Right-click the box, choose Select Data. 

How to Color Excel Bubble Chart Based on Value

  • Click Add.

How to Color Excel Bubble Chart Based on Value

  • Set the series name to A and select the appropriate cell ranges for X, Y, and bubble size.
  • Repeat step for category B.

  • Press OK to create the data series.

  • You can see the two data series that have been created.

  • Navigate to the Chart Design tab and choose Change Chart Type.

  • Select X Y (Scatter) and click on 3-D Bubble.

  • Your bubble chart will now display different colors for each category.

Read More: How to Create Bubble Chart for Categorical Data in Excel


Download Practice Workbook

You can download the practice workbook from here:


Related Articles


<< Go Back To Bubble Chart in ExcelExcel ChartsLearn Excel

Get FREE Advanced Excel Exercises with Solutions!
Nazmul Hossain Shovon
Nazmul Hossain Shovon

Nazmul Hossain Shovon, a BUET graduate in Naval Architecture and Marine Engineering, embarked on his career with 8 months dedicated to the Exceldemy project's triumph. Transitioning into a Software Developer role, he specialized in web add-in development. At Exceldemy, he authored about 125 blog articles and solved many visitors’ problems, refining his writing skills and delving into Excel-related topics. With a primary passion for programming and software development, Shovon continually explores new horizons, fostering professional growth in his... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo