+ Reply to Thread
Results 1 to 6 of 6

Making improvements to chart generator tool - Easily adding or removing data?

  1. #1
    Registered User
    Join Date
    05-31-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    10

    Making improvements to chart generator tool - Easily adding or removing data?

    Hello!

    I am currently working on my first-ever project using Excel VBA. I am working to create a tool / template that allows my end-users to input data about two items, the item's features, and then show a variety of different cost-comparison charts based on these features.

    At the moment, I have a stacked column chart and a Waterfall chart.

    I am stuck because I would like to make the tool more easily editable. For example,
    - Easily adding new Feature columns for the two bar charts.
    - Easily adding new Feature columns for the Waterfall chart.

    I have attached the .xlsm that I am working from.

    I hope that someone will be able to help me make this template more "living", in the sense that new users can easily adapt it to the data that they need to input.

    Thanks for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Making improvements to chart generator tool - Easily adding or removing data?

    I have a question about how dynamic you need the charts to be. For example, you show 6 features. If the user fills in only 4 of them do you want to show only 4. Or do you want it so the user can insert a 7th feature and show that on the charts as well?

    What about adding additional products?

    I think this can be done with a combination of Excel Tables and /or named dynamic ranges.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    05-31-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    10

    Re: Making improvements to chart generator tool - Easily adding or removing data?

    Quote Originally Posted by dflak View Post
    I have a question about how dynamic you need the charts to be. For example, you show 6 features. If the user fills in only 4 of them do you want to show only 4. Or do you want it so the user can insert a 7th feature and show that on the charts as well?

    What about adding additional products?

    I think this can be done with a combination of Excel Tables and /or named dynamic ranges.
    Hi dflak,

    Thanks for your response. I would like the chart to be dynamic enough to account for either more or less than 6 Features, as you mentioned. I simply started with six to get me going.

    I would also like the ability to add additional product rows.

    Do you think that having buttons to add Features and Products would be beneficial? Do you think I should start over, or can this be accomplished with what I have so far?

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Making improvements to chart generator tool - Easily adding or removing data?

    Take a look at this to see if it meets most of your needs. Excel tables can do most of what you want. Look at the Table Example sheet. I took your "table" format for the data range and converted it into an Excel table. then I highlighted the table and made a cluster bar graph of it.

    Now experiment with the table. Add a new feature in column H then add a new product on row 4. One of the features of Excel tables is that they know how big they are and charts and formulas built on them adjust automatically.

    To get more information on Excel tables, see this article: http://www.utteraccess.com/wiki/inde...ables_in_Excel.

    Let me know if you are comfortable with this approach and what else needs to be done.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-31-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    10

    Re: Making improvements to chart generator tool - Easily adding or removing data?

    Quote Originally Posted by dflak View Post
    Let me know if you are comfortable with this approach and what else needs to be done.
    Hi dflak, thanks so much for your help. This is really close to what I am looking for. I just have a couple more requests/questions about the chart generation:
    - What is someone deletes the chart - how can it be regenerated? Are you able to add a button to the spreadsheet that adds the chart?
    - Is it possible to add data labels for each Feature as well? Can this be done automatically?

    Thanks so much for your help!

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Making improvements to chart generator tool - Easily adding or removing data?

    if they clobber the chart, then it will have to be reconstructed. I know it can be done with VBA, but I just tested this and it works: put the cursor anywhere in the table, click insert and select the chart you want.

    If you want to change the data label, just change the column header on the table.

    These are just some of the many things I like about tables .

+ 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. Adding and removing series to a chart
    By behrensf84 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2014, 05:56 PM
  2. [SOLVED] Can the name of a series data for a chart be changed more easily?
    By billj in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 09-24-2013, 11:25 AM
  3. Need help removing all symbols from a random string generator...
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-12-2013, 03:48 PM
  4. Adding/Removing Column to all sheets & making formulas work
    By gregal0711 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2012, 05:09 PM
  5. Excel 2007 : Moving chart data to worksheet easily
    By smudgepost in forum Excel General
    Replies: 1
    Last Post: 07-06-2010, 07:37 AM
  6. Replies: 10
    Last Post: 03-25-2009, 10:09 PM
  7. XY Chart Improvements For Scientific Data
    By Phil Preen in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-15-2005, 12:05 AM

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