Excel 2007: Bar Graph to completely ignore zero values?

JazzSP8

Well-known Member
Joined
Sep 30, 2005
Messages
1,233
Office Version
  1. 365
Platform
  1. Windows
Hi all

I've been trying to get a bar graph to completely ignore zero values and I just can't work it out.

The graph is dynamic in that I've got it set up so that you can scroll through days by pressing a button to increase / decrease the date.

The problem is that we have a series of catalogues and there daily value plotted against them, unfortunately it's got to the stage where you can't read the Data Table at the bottom of the graph because of the number of catalogues, as not all the catalogues have sales every day I'd like to try and get it so that the graph only displays catalogues that have sales on a given day.

I've tried using IF statements to blank out the cells or NA() them but the still appear in the data table and have a blank instead of a bar.

I realise I might have to create a whole new data series to sort this out but I can't think of a way of doing that dynamically to bring me a list of catalogue names / values.

Can anyone offer any help?

Thanks.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Managed to solve this one myself :)

I forgot that you could hide columns and they'd dissapear from the Graph, it's been a while :laugh:

So, just created a macro on a sheet change event that would unhide all the columns and then rehide all the columns with a zero value in the data ranges row.

It's a bit choppy but it does it's job :)

Thanks to everyone who took the time to look at this :)
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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