Creating a chart and ignore empty rows/cells

Anonymous
2022-09-19T10:11:33+00:00

Hi, so I want to create a chart of top 5 people in a topic. In some cases, there's 2 same score so top 5 rank will be 6 or 7 people. How do I create the chart that automatically contains 5 or 6 or 7 rows according to the list of people?

In the example, I filter 5 top people in pivot table, but preparing 7 rows (in case there are same scores). The data shows 6 people in top 5 filtering. How do I automatically change the chart to show 6 people (removing N/A)

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Andreas Killer 144K Reputation points Volunteer Moderator
    2022-09-19T10:25:55+00:00

    You have to filter out the N/A, the chart shows the visible values only.

    Andreas.

    0 comments No comments
  2. Anonymous
    2022-09-20T02:38:06+00:00

    You have to filter out the N/A, the chart shows the visible values only.

    Andreas.

    Yeah, I've done that.

    But I mean, I want the chart to adjust the position. Not leaving a blank space, as it is shown in the red mark.

    Is it possible to make the chart automatically adjust itself?

    0 comments No comments
  3. Andreas Killer 144K Reputation points Volunteer Moderator
    2022-09-20T03:50:26+00:00

    You have to filter out the N/A, the chart shows the visible values only.

    Andreas.

    Yeah, I've done that.

    No, your data includes an empty rows and that's why the chart shows it. A chart shows data "as is", he doesn't "cheat".

    Image

    If your data is based on a Pivot table, filter out the N/A in there and use a Pivot Chart.

    If you need further help show me your file.

    Andreas.

    0 comments No comments
  4. Anonymous
    2022-09-20T06:01:32+00:00

    You have to filter out the N/A, the chart shows the visible values only.

    Andreas.

    Yeah, I've done that.

    No, your data includes an empty rows and that's why the chart shows it. A chart shows data "as is", he doesn't "cheat".

    Image

    If your data is based on a Pivot table, filter out the N/A in there and use a Pivot Chart.

    If you need further help show me your file.

    Andreas.

    Yeah, that's exactly my question. How can Excel's chart adjust that reference.

    And yes, the data is indexed from the pivot table (with a top 5 filter, but sometimes shows more than 5 due to same value).

    But now I've found the answer on YouTube. For anyone having the same issue, here is the link:

    Automatically skip blanks in Excel charts with formulas (ignore gaps in Excel chart axis) - YouTube

    2 people found this answer helpful.
    0 comments No comments
  5. Andreas Killer 144K Reputation points Volunteer Moderator
    2022-09-20T07:13:42+00:00

    But now I've found the answer on YouTube. For anyone having the same issue, here is the link:

    Automatically skip blanks in Excel charts with formulas (ignore gaps in Excel chart axis) - YouTube

    That's what I call a complicated workaround for a simple problem.

    Andreas.

    0 comments No comments