Hide chart data labels with value zero

Skotland

New Member
Joined
Aug 3, 2018
Messages
7
Hey forum!

I am currently working on a chart which is showing time if the format hhmmss. I have some values showing no time (00:00:00). Is there any smart way to hide these values from the data labels?

Thanks in advance.
 

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)
Hi Skotland - Welcome to the Forum

You can hide zero values by using NA() which will mean they aren't plotted.

If the data being plotted is the result of a formula you can use it like this;

Code:
=IF([YOURFORMULA]=0,NA(),[YOURFORMULA])

Or, you can just make a formula and plot that range instead? For each of your current data cells make a copy row / column with;

Code:
=IF(A1=0,NA(),A1)

Does that help?
 
Upvote 0
Hi Skotland - Welcome to the Forum

You can hide zero values by using NA() which will mean they aren't plotted.

If the data being plotted is the result of a formula you can use it like this;

Code:
=IF([YOURFORMULA]=0,NA(),[YOURFORMULA])

Or, you can just make a formula and plot that range instead? For each of your current data cells make a copy row / column with;

Code:
=IF(A1=0,NA(),A1)

Does that help?

Hi Jazz!

Thank you for your answer. I'm already using an if statement in the formula, and it looks like this

=IF(OR($O$1=M35;$O$1="All reps");IFERROR(SUMIFS('INPUT PC LOGINTIME'!$G:$G;'INPUT PC LOGINTIME'!$F:$F;"Available";'INPUT PC LOGINTIME'!$H:$H;'SALES DASH'!M35);"00:00:00");"")

Is it possible to merge these two to give me the result im looking for?

Thanks!
 
Upvote 0
You don't need to merge it, looks like the 0 values are being put in place by your formula if there is an error?

So just change it to;

Code:
=IF(OR($O$1=M35;$O$1="All reps");IFERROR(SUMIFS('INPUT PC  LOGINTIME'!$G:$G;'INPUT PC LOGINTIME'!$F:$F;"Available";'INPUT PC  LOGINTIME'!$H:$H;'SALES DASH'!M35);NA());"")

Does that work?
 
Upvote 0
You don't need to merge it, looks like the 0 values are being put in place by your formula if there is an error?

So just change it to;

Code:
=IF(OR($O$1=M35;$O$1="All reps");IFERROR(SUMIFS('INPUT PC  LOGINTIME'!$G:$G;'INPUT PC LOGINTIME'!$F:$F;"Available";'INPUT PC  LOGINTIME'!$H:$H;'SALES DASH'!M35);NA());"")

Does that work?

Hmm... It still gives me 00:00:00 for the ones with zero value.
 
Upvote 0
You don't need to merge it, looks like the 0 values are being put in place by your formula if there is an error?

So just change it to;

Code:
=IF(OR($O$1=M35;$O$1="All reps");IFERROR(SUMIFS('INPUT PC  LOGINTIME'!$G:$G;'INPUT PC LOGINTIME'!$F:$F;"Available";'INPUT PC  LOGINTIME'!$H:$H;'SALES DASH'!M35);NA());"")




Does that work?

Solved it the hard way....

=IF(IF(OR($O$1=M35;$O$1="All reps");IFERROR(SUMIFS('INPUT PC LOGINTIME'!$G:$G;'INPUT PC LOGINTIME'!$F:$F;"Available";'INPUT PC LOGINTIME'!$H:$H;'SALES DASH'!M35);"00:00:00");"")=0;"#N/A";IF(OR($O$1=M35;$O$1="All reps");IFERROR(SUMIFS('INPUT PC LOGINTIME'!$G:$G;'INPUT PC LOGINTIME'!$F:$F;"Available";'INPUT PC LOGINTIME'!$H:$H;'SALES DASH'!M35);"00:00:00");""))


Thanks for your input!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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