+ Reply to Thread
Results 1 to 2 of 2

No Data in Cell, don't want to display label or chart?

  1. #1
    Registered User
    Join Date
    07-12-2017
    Location
    SF
    MS-Off Ver
    2016
    Posts
    4

    No Data in Cell, don't want to display label or chart?

    Hello!

    This might be a dumb question as I am still very new with Excel. Let's say I have data in cell A2 and data in cell A3 (both are percentages). The data for these two cells is being pulled from a different cell (in a pivot table). I am then using A2 and A3 to make a pie chart. Sometimes A2 and/or A3 may be empty given it is empty in the pivot. When the cell is empty how can I NOT DISPLAY the pie chart, or atleast not display the label (category name and number). I've looked up how to not display the label and I keep coming across the custom label "0;;;", but this just messing up the value when A2 is an actual value. Any advice? Anything helps!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: No Data in Cell, don't want to display label or chart?

    If you structure your formula to return an error for no data, it wont show in the chart.
    =if(formula=0,#NA,formula)
    something like that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Can a Chart Data Label Display Text?
    By Bobbbo in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 12-30-2016, 07:27 PM
  2. Pivot Chart not displaying data label values for the first Legend label
    By zykkzxxy789077 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-24-2016, 05:46 AM
  3. [SOLVED] Changing all columns in a chart to display a series name label
    By moty.98 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-26-2012, 05:09 AM
  4. [SOLVED] How do I force a chart to only display the label for one person
    By dip11 in forum Excel General
    Replies: 3
    Last Post: 09-11-2012, 09:37 AM
  5. cant get userform label to display cell value
    By justaguyfromky in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-02-2011, 01:11 PM
  6. Display data using label on userform
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-27-2008, 04:39 PM
  7. Display Cell Value on UserForm Label
    By Burke in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2008, 06:59 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1