Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8937797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:28:40+00:00 2026-06-15T10:28:40+00:00

How do I get an Excel or PowerPoint stacked Bar Chart to not chart

  • 0

How do I get an Excel or PowerPoint stacked Bar Chart to not chart #N/As?
I have data like this

Date Sales Net

Jan-12 1.5 .5

Feb-12 2.6 1.5

N/A #N/A #N/A

N/A #N/A #N/A

I have the N?As in the range of the data because they may get data at some point, hence Dynamic.
I do not want to use offset, since it doesn’t work well in a chart created in Powerpoint.
There are over 125 slides and 100’s of charts, so manual changes are not good.
I am creating the charts in Powerpoint, then adding links to the data page behind the chart. Updating is fine, but after breaking all those links (I have a macro for this),
The offset named ranges will not update, since the formula needs a sheet name (like Sheet1!), but Powerpoint calls it ‘Chart in Microsoft PowerPoint’.

I hope I explained this enough.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:28:41+00:00Added an answer on June 15, 2026 at 10:28 am

    Since I can’t use offset or named ranges to good effect, I created this PPT macro to reset the data range in my data
    1) any row of data that is not to be charted has an x axes value of zero and not #N/A
    2) in F1 of Data sheet has to count the number of rows to chart, using countif not = 0
    3) name the chart, I used StackedBar1
    run macro

    If someone has an easier solution, please let me know.

    Sub C_SetSourceData_StackedBar()
    Dim s As Slide
    Dim shp As Shape
    
    For Each s In ActivePresentation.Slides   'moves through all slides in presentation
    For Each shp In s.Shapes                  'moves through each shape on slide
        If shp.Name = "StackedBar1" Then      ' stacked bar chart that needs source data updated is named this
    
            Set c = shp.Chart                 'set c to the chart object
    
            Dim data As ChartData
            Set data = c.ChartData             'sets data to the chartdata behind the chart
            data.Activate                       'need to activate the chartdat(excel sheet)
    
                'in cell F1 the formula =countif(A1:A50,"<>0")  this counts the rows that are not zero
            x = data.Workbook.Worksheets(1).Range("F1").Value  'gets the last row number of data not zero
            Let rng = "Sheet1!$A$1:$E$" & x                    ' creates the source range as a string
    
           c.SetSourceData (rng)                               ' Sets the new source data range
    
            data.Workbook.Close                                 ' Close the chartdata workbook
        End If
    Next shp
    Next s
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the xlGeneralFormatName From Excel, like this: Excel.Application _excelApp; Excel.Workbook _excelWB;
I have text files from a data logger in a format like this hh:mm,
i Tried to get data from excel in java. if i execute it as
I can get winword and excel beforeprint events, but in powerpoint I can't. Can
The main problem is that PowerPoint tables do not have a shrink to fit
I am trying to get Excel data, which was mapped using a grid/matrix mapping
I try to get excel sheet names, with oledb. My connection string is: Provider=Microsoft.ACE.OLEDB.12.0;Data
Hi All, I have an application (windows service/C#) which starts EXCEL and POWERPOINT and
I want to know how can I get excel cell name like e.g. if
I have a excel sheet with one chart which is the source. My target

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.