提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何根据Excel中的类别更改气泡图颜色?

如果您想在Excel中的气泡图中根据不同类别更改不同的气泡颜色,如下面的屏幕截图所示,本教程可以帮助您。
DOC-气泡颜色1

根据类别更改气泡图颜色

Office选项卡在Office中启用选项卡式编辑和浏览,使您的工作更轻松......
Kutools for Excel - 最佳办公生产力工具将解决您的大部分Excel问题
  • 重用任何东西: 将最常用或最复杂的公式,图表和其他任何内容添加到您的收藏夹中,并在将来快速重复使用它们。
  • 超过20文本功能: 从文本字符串中提取数字; 提取或删除部分文本; 将数字和货币转换为英语单词...
  • 合并工具:多个工作簿和表格合二为一; 合并多个单元格/行/列而不丢失数据; 合并重复行和总和...
  • 拆分工具:根据价值将数据拆分为多个表格; 一个工作簿到多个Excel,PDF或CSV文件; 一列到多列......
  • 粘贴跳过 隐藏/过滤行; 数和总和 按背景颜色; 创建邮件列表和 通过Cell的价值发送电子邮件...
  • 超级过滤器: 创建高级过滤方案并应用于任何工作表; 排序 按周,日,频率等; 筛选 通过大胆,公式,评论......
  • 超过300强大的功能; 适用于Office 2007-2019和365; 支持所有语言; 在公司轻松部署; 全功能60天免费试用。

箭头蓝色右泡 根据类别更改气泡图颜色


1。 您需要先复制您的x轴值并将其粘贴到原始数据范围旁边的空白列中。

DOC-气泡颜色2

2。 然后在数据范围正上方的单元格中输入类别名称,并在每两个类别之间保留一个空白单元格。 看截图:

DOC-气泡颜色3

3。 然后在每个类别下的单元格中键入y,然后在每个空白单元格下键入Bubble。 请参阅下面的截图:

DOC-气泡颜色4

4。 键入此公式 = IF($ A3 = F $ 1,$ C3,NA()) 进入单元格下 Y 单元格,然后将填充手柄拖动到您需要的范围内。

注意:$ A3表示原始数据范围中的类别名称,F $ 1表示您在此列中需要的类别,$ C3表示原始数据范围中的y值。

DOC-气泡颜色5

5。 然后输入这个公式 = IF(ISNA(F3),NA(),$ D3) 进入单元格下 泡沫 单元格并将其填充到您需要的范围。

注意:F3表示单元格离开活动单元格,$ D3表示原始数据范围内的气泡值。

DOC-气泡颜色6

6。 选择您在上述步骤中创建的新数据范围,然后单击 插页 > 其他图表 > 泡沫,并选择你需要的气泡类型。

DOC-气泡颜色9

在Excel 2013中,单击 插页 > 插入散点图(XY)或气泡图 > 泡沫.

现在,您可以看到具有相同泡泡颜色的相同类别。

DOC-气泡颜色8

如果你想改变基于价值的图表颜色,你可以去这个教程 如何根据Excel中的值更改图表颜色.


Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
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 · 2 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 · 7 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.
        D · 2 months ago
        wow what wizardry is this? it works but no idea why
  • To post as a guest, your comment is unpublished.
    racefface · 2 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?

    ~/R
  • 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!

    Casey
  • To post as a guest, your comment is unpublished.
    Mel · 3 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.
  • To post as a guest, your comment is unpublished.
    Gareth · 3 years ago
    you are probably doing what I did initially which is selecting the header rows when selecting the data, if you only select the values and no headers it will work fine
  • To post as a guest, your comment is unpublished.
    David · 3 years ago
    Thanks for this walkthrough. A problem that I have, and I see you have it too based on the screen shots, is that the x axis no longer reflects the values from your data. The position of the bubbles along the x axis may be accurately scaled but the actual values are missing. How do you fix that?
    • To post as a guest, your comment is unpublished.
      Becky · 2 years ago
      The x-axis displays the number of items in the list and the position of each one. The only workaround that I could figure out was to selected Edit Data and then select each category and specify the cell reference rather than leaving it as a range.
    • To post as a guest, your comment is unpublished.
      Becky · 2 years ago
      [quote name="David"]Thanks for this walkthrough. A problem that I have, and I see you have it too based on the screen shots, is that the x axis no longer reflects the values from your data. The position of the bubbles along the x axis may be accurately scaled but the actual values are missing. How do you fix that?[/quote]
      The values along the x-axis reflect the position within the selection, not the actual values for the x-axis. eg., the first bubble is position 2 (second row), second bubble is position 3 and so forth. The values generated along the x-axis will reflect the number of items in the list. The only workaround that I could discover was to Edit Data and then select each category and manually adjust the cell references for x-axis, y-axis, and bubble size to reflect the actual cell, not a range.
      • To post as a guest, your comment is unpublished.
        Sidhant · 1 years ago
        Hi Becky,


        Thanks for sharing this with us. Can you please explain this with an example? It would be really helpful. Thank you.