Solved

Data Table to show only ending value in series

Posted on 2008-10-06
12
149 Views
Last Modified: 2011-10-19
i have a chart in excel and i would like the data table to only show the ending value of each data series not each point in the series.
0
Comment
Question by:tomasdlv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 22652673
That cannot be done.  However, if instead of showing the data table you instead show data labels at
each point in the chart, this code will remove all labels except those for the last point in each series.



Sub FixPoints()
   
    Dim cht As ChartObject
    Dim ser As Series
    Dim Counter As Long
   
    Set cht = ActiveSheet.ChartObjects(1)
   
    For Each ser In cht.Chart.SeriesCollection
        For Counter = 1 To ser.Points.Count
            If Counter = ser.Points.Count Then Exit For
            ser.Points(Counter).HasDataLabel = False
        Next
    Next
   
End Sub
0
 

Author Comment

by:tomasdlv
ID: 22652705
i can not put labels for the ending point in the series because it over laps with the other ending points in other series. is there any other way of doing this? do you think maybe a pivot table?
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 22652728
tomasdlv,

It would be useful to see some sample data.  EE now allows you to directly upload
files to your question.

Please be advised that once you upload a file, it can be publicly accessed, and that it
may not be possible to fully and permanently delete it.  Therefore, be very careful about
posting proprietary, confidential, or other sensitive information.  If necessary, use "fake"
and/or obfuscated data in your sample.

Regards,

Patrick
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:tomasdlv
ID: 22652749
the data changes all the time...i pass this data thru a macro that creates a chart from it...depending on the client the data will always be different...do you still want a sample?
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 22652772
tomasdlv said:
>>depending on the client the data will always be different...do you still want a sample?

Dunno.  I'm just trying to visualize your end product :)
0
 

Author Comment

by:tomasdlv
ID: 22652804
here you go....let me know if you need anything else
sample.xls
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 22652851
tomasdlv,

That seems like an awful lot of data to show in a chart data table...

Regards,

Patrick
0
 

Author Comment

by:tomasdlv
ID: 22652874
so the final product should be a line chart based on the data attached and a smaller data table on the side with just the final data point in the series.

0
 

Author Comment

by:tomasdlv
ID: 22652936
patrick, the data i provided will be used in the construction of the line chart...my mission is then to create a data table on the side of the line chart just giving the end values....for example the 9/30/08 in the data attached.
0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 22652973
OK, I thought you meant you were using the data table option with the chart.  Are you savvy enough
to just grab the ending data and stick it in the appropriate cells near the chart?
0
 

Author Comment

by:tomasdlv
ID: 22653008
how do you mean?
0
 

Author Closing Comment

by:tomasdlv
ID: 31503517
thanks
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question