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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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