Change Chart Range

Tarver

Board Regular
Joined
Nov 15, 2012
Messages
109
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I'm trying to graph a changing amount of data, and need to coax Excel into showing only the relevant data, not blanks or zeroes.

The amount of data changes on the fly (depending upon promotions, seasons, etc.) I have formulas that INDEX/MATCH the correct data, but there may be anywhere from two to 200 data points. Is there an easy way to change the range of data that my graph shows without having to manually select the ranges each time?

For instance, here's an extreme example, with only two data points. I'm trying to eliminate all of the empty space in the graph to the right.


VJYVY8Y
VJYVY8Y


Ideally, that graph should look like this, instead:



This is the same data as the graph above, but only showing these two non-zero (or non-null) data points. Is there a way to make that change (preferably) with settings in the chart? Or via formulas?

Thanks very much in advance for any help you can offer!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
excel will not chart an error. You need to have your formula or data have an error in the blank/zero cells.
 
Upvote 0
apparently the INDEX/MATCH result in 0
instead of 0's try #N/A's . .
 
Upvote 0
Thanks, that's great info, but I've been unable to get it to do anything different by having either #N/A or #NULL ! errors as the results of my formula.

Here's what it charts if my result is an #N/A error.

image.png
[/URL][/IMG]

If I change it so that my axis has blanks ("") it's the same result, but without the #N/A errors across the bottom axis.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top