Share via

Issue with Excel chart x-axis

Anonymous
2021-07-25T20:26:09+00:00

The following sample workbook refers.  https://1drv.ms/x/s!AtbjuzRcDyZwyRpeoRnngdu8M4Tm?e=vha7Tn. 

(Note - this is made up data, just to demonstrate the following point)

By using the NA() resource, as used in the cells in column G, one can limit the data on the chart, avoiding the appearance of unnecessary zeros. 

But is it possible, also, to cause the x-axis to behave dynamically in a similar way, so that the x-axis is also dynamically limited to just those periods (e.g. months) that so far have data in them? 

I couldn't see how to do that. 

Thanks for any advice.

Microsoft 365 and Office | Excel | For business | 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

Answer accepted by question author

HansV 462.6K Reputation points
2021-07-25T20:59:03+00:00

See https://www.dropbox.com/s/spwzzdu9vdq57wp/Donation-analysis.xlsx?dl=1

I created dynamic named ranges for the x-values and each of the four series, then edited the source data of the chart to use these named ranges. You can view the definition of the names by selecting Formulas > Name Manager.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2021-07-26T08:05:09+00:00

    Thanks very much. That fixed things perfectly!

    Was this answer helpful?

    0 comments No comments