+ Reply to Thread
Results 1 to 16 of 16

Inserting new column into chart data range and range keeps changing.

  1. #1
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Inserting new column into chart data range and range keeps changing.

    Okay this is driving me nuts, I can't believe this could be so complicated. heres my question. every month i create a report that graphs the last three months worth of reporting. i have a sheat that i put the info in. then i have to go and manually graph the last three months.

    What I want to do is basically build a sheet for the three months for instance A1=March B1=Feb C1=JAN
    Then every month I want to insert a new roa in front of A meaning the new row becomes A and the rest move down. (this part i got)
    Problem is I want my graphs data range to stay the same. currently it changes with the previouse data.


    PLEASE HELP>
    Last edited by superchew; 12-20-2014 at 09:35 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Charts

    Here's a way I did something similar. Where I add my new data in my calculations sheet I have a min formula for my dates, and I normalize my dates in a separate column so 8/22/14 becomes 8/1/14. Then I have an edate formula next to it that adds a month and same next to it covering all my date range. All my graphs refer to these values so every time I add new data all my graphs update automatically.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: Charts

    okay so im a nube, and somewhat of an idiot. could you attach an example.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Charts

    Give me a little time to create one.

  5. #5
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: Charts

    much appreciated.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Charts

    see if something like the attached would be something you could use, to see how it would work, paste over the data in the "first sheet" with the data from the "new values" sheet to see how it would automatically update the chart.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: Charts

    Test report.xls

    Not sure your way works for me. I have attached a copy of my report what I would like to do is insert a new column in front of the first month listed and have the graph always chart the first three month columns.

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Inserting new column into chart data range and range keeps changing.

    For mine if you pasted new data anywhere in the graph the min formula will pull the minimum date wherever it appears in the data. You can do the same using max and use a negative with edate to get the most recent three months or the first three months and refer your graph data to that calculated area.

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Inserting new column into chart data range and range keeps changing.

    so here is a different version of what I was talking about. In this sample you add in your new values and the two tables will change to suit whether you add in data based on older dates (first three months) or newer dates (latest three months).
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: Inserting new column into chart data range and range keeps changing.

    I guess i just don't understand. as i said i am a noob. I don't want to past over any data, I want to keep that for futur reference. I just want to insert.

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Inserting new column into chart data range and range keeps changing.

    My latest version gives you the option to add new data and the graph will automatically update to the latest three months. All you have to do is apply the logic to your sheets.

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Inserting new column into chart data range and range keeps changing.

    you have confused things ,post #1 mentions rows
    post #7 says columns
    and your example in post #7 shows Aug-14 Sep-14 Oct-14
    if you wanted to insert a new column you'd do it at the end
    unless you mean
    Oct-14 Sep-14 Aug-14 and you want to insert nov-14 before october
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  13. #13
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: Inserting new column into chart data range and range keeps changing.

    Martin you are correct and I apoligize. I meant columns and once i get the correct method i plan on changing thre orientation of the columns to reflect.

  14. #14
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: Inserting new column into chart data range and range keeps changing.

    Sambo if i sent you a copy could you help me out. I am very confused.

  15. #15
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Inserting new column into chart data range and range keeps changing.

    Thanks Martin for helping to define this more.
    So, here is your sample back with formatting the way I would approach it.
    First, I would insert your new data at the far left of the data set, so instead of it going form August to Sept to Oct etc i would have Aug at the far right end, to the left of it Sept, then Oct and keep inserting your new data in the first column you use (column C in your example).
    then look at the calculations sheet, this is where I put the list of your people. You can see at the top that it automatically inserts the latest date in cell B2 then in C2 it gives you the prior month date, same in D2. Now the vlookups return the appropriate values and your graph in the graph sheet automatically updates without you having to reformat the graph or point it to different cells.
    Attached Files Attached Files

  16. #16
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Inserting new column into chart data range and range keeps changing.

    ok, so here is the final version. So, I made up data and put it into the "new data" worksheet. If you copy this column and insert copied cells into the data sheet in column C, you will see that the graph will automatically update with the new results. Beyond that you'll need to better define what you want with sample results.
    Attached Files Attached Files

+ 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. Replies: 32
    Last Post: 07-17-2018, 03:08 AM
  2. ReFormatting points to lines in XY scatrer charts with 6 charts on each tab.
    By Niedermee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2014, 01:51 PM
  3. copying multiple charts from excel to word overwriting previous charts
    By eric45 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2013, 11:11 AM
  4. Creating simple charts from multiple pivot table charts
    By hovaucf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2008, 04:13 PM
  5. Replies: 1
    Last Post: 05-09-2007, 11:35 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