+ Reply to Thread
Results 1 to 6 of 6

Have Excel ignore Pie Chart source data?

  1. #1
    Forum Contributor
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2013
    Posts
    131

    Have Excel ignore Pie Chart source data?

    Hey folks!

    I have a dumb question, but one I can't find an answer to anywhere online through my searches so far...

    I have pie charts where the number of available answers will shift between 2 and 5, depending on the question. If I edit the pie chart to only select the data that has information in it, it displays how I want it to. If I select the data range that has blanks in it, the pie chart is all messed up.

    My question is simply, how can I format the pie charts to look how they should without blank cells messing anything up? The source data is on a Master Data spreadsheet and I want users to just be able to copy and paste their answers without having to fiddle with pie chart settings each time.

    Any suggestions would be great! I'm attaching an image to show what I mean. Top chart is with only visible data selected and looks how it should. Bottom chart is with the full range selected (to allow for multiple pasted answers in the future), with blank cells, and it's all wonky.
    Attached Images Attached Images

  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,929

    Re: Have Excel ignore Pie Chart source data?

    arrange your data so that the blank cells appear as errors.. The chart will then ignore the error cells.
    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

  3. #3
    Forum Contributor
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2013
    Posts
    131

    Re: Have Excel ignore Pie Chart source data?

    Quote Originally Posted by FDibbins View Post
    arrange your data so that the blank cells appear as errors.. The chart will then ignore the error cells.
    Hey there! I appreciate the suggestion, but in trying to make that work I'm getting the exact same issue. I have a formula in my data range that's like this:
    Please Login or Register  to view this content.
    If data is in my helper cell (A2), the code returns the value to be displayed on the pie chart, but if not it gives an #N/A error. Even with the blank cells now showing as errors, my pie chart still looks exactly the same (no chart, numbers at the bottom).

    Am I doing something wrong?

  4. #4
    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,929

    Re: Have Excel ignore Pie Chart source data?

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Forum Contributor
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2013
    Posts
    131

    Re: Have Excel ignore Pie Chart source data?

    Quote Originally Posted by FDibbins View Post
    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Good call, example workbook is attached.

    Just trying to set the data range for the pie chart to 5 total spaces, but if any of those spaces are blank the chart itself breaks and doesn't show the distribution of answers.
    Making the blank cells error out results in the same exact issue.
    Attached Files Attached Files

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Have Excel ignore Pie Chart source data?

    New chart with data and labels using named ranges.

    Use Formulas > Name Manager. To see the 2 named ranges for data and labels.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

+ 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. Excel chart with multi level category label issue delinking source data from chart
    By babu324 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2017, 02:58 AM
  2. Excel Charts / Pivot chart Ignore Old Data
    By AusKee in forum Excel General
    Replies: 1
    Last Post: 07-03-2017, 01:47 AM
  3. Excel Chart data source
    By BenHatton in forum Excel General
    Replies: 5
    Last Post: 01-30-2017, 07:49 AM
  4. Ignore Blank column in source data for Column Chart.
    By guitmusic11 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-25-2015, 04:42 PM
  5. To get Chart Data Source of powerpoint chart by excel VBA
    By imran0305 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2014, 07:13 AM
  6. Excel Chart Source Data
    By dblcrona in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-24-2013, 01:00 PM
  7. [SOLVED] Excel chart source data
    By John in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2005, 01:06 PM

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