How to remove text from chart when value is zero??

juncker88

New Member
Joined
Nov 3, 2015
Messages
1
Hallo everybody,

My question relates to a simple bar-chart, where I have values from the past week’s sales performance for all our products.

Ex:

Week 45Sales
Banana5
Apple0
Orange10

<tbody>
</tbody>


How can I make the text disappear when the value is zero – and make the chart fill out, so there is no gaps??

It is an automated update, so the solution has be automatic.

Many thanks,

Andreas Juncker
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi Andreas
Welcome to the board

I see 3 options

1 - each time you update the data use a filter with sales different from 0. The chart won't use the hidden rows.

2 - without vba, I'd build a dynamic table based on the source data, where only the items with sales different from 0 appear.
In the case of your example, the result table would not have the item Apple.
I would then base the chart on this result table.
This would be a completely automatic solution.

3 - If you know vba, you could write some code to build the chart based on the items with sales different from 0.
Then you'd execute it each time there's an update
 
Upvote 0

Forum statistics

Threads
1,215,432
Messages
6,124,856
Members
449,194
Latest member
HellScout

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