+ Reply to Thread
Results 1 to 11 of 11

Excel Charts - Copying and pasting to new destination cells

  1. #1
    Registered User
    Join Date
    04-08-2022
    Location
    London, England
    MS-Off Ver
    O365
    Posts
    10

    Excel Charts - Copying and pasting to new destination cells

    Hi,

    I have a need to create a basic excel bar chart showing actuals and budgets side by side, the issue I have is I need to do this hundreds of times (With the data changing dependent on location selected).

    I was hoping I could copy and paste the charts, but whenever I copy a chart it always references the original data, it doesn't move to the new data set I've just copied to.

    I've tried removing the $anchors min the chart range but it doesn't except that.

    Hoping that this maybe a simple issue and potentially an option/setting I can change

    Any help will be gratefully appreciated as it's gonna take days to copy and redirect all the charts I need to create.

    Thanks
    Attached Files Attached Files
    Last edited by Jimbo79; 03-28-2023 at 01:43 PM. Reason: Adding Chart

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Excel Charts - Copying and pasting to new destination cells

    Quote Originally Posted by Jimbo79 View Post
    I have a need to create a basic excel bar chart showing actuals and budgets side by side, the issue I have is I need to do this hundreds of times (With the data changing dependent on location selected).
    Without actually seeing what you're data looks like and what you're doing with the chart, have you considered using a pivot chart?
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    04-08-2022
    Location
    London, England
    MS-Off Ver
    O365
    Posts
    10

    Re: Excel Charts - Copying and pasting to new destination cells

    I've added a sample chart, essentially I want to copy the London Chart down hundreds of times for other locations (the data being linked to source data in another tab with sumifs), but if I do the chart is fixed to the original set of numbers that I copied it from, it doesn't relatively move to the copied cells.
    Last edited by Jimbo79; 03-28-2023 at 05:35 PM.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Excel Charts - Copying and pasting to new destination cells

    How about something like this? Again, I have no idea what your source data looks like, so I can't a whole lot of help when it comes to design. However, I would look to tackle it like this.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-08-2022
    Location
    London, England
    MS-Off Ver
    O365
    Posts
    10

    Re: Excel Charts - Copying and pasting to new destination cells

    Thanks Jeffreybrown, Unfortunately that's not quite what I am looking for,

    What I need is the ability to copy and paste a chart along with it's reference cells, but excel only (based on my efforts) seems to allow you to copy the chart with the reference cells always pointing back to the original set of data. Or (Hopefully) more simply, if I copy chart 1 and it's reference data, chart 2 will always reference the data for chart 1.

    A dynamic chart isn't suitable as I have to produce several hundred charts (Every UK postal code to give a sense of scale), all of which will be Macro'd into independent report packages for consumption.

    Thanks

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Excel Charts - Copying and pasting to new destination cells

    Quote Originally Posted by Jimbo79 View Post
    A dynamic chart isn't suitable as I have to produce several hundred charts (Every UK postal code to give a sense of scale), all of which will be Macro'd into independent report packages for consumption.
    Are you good with using VBA?

    Several hundred charts seems like a task for VBA. However, the question still exists, how does the data get from one range of reference cells to the next?

    VBA would need to know where those references are and then maybe we could create those charts. I might be able to do this in VBA, but first, how about creating a sample document with the data for about five charts worth and then how do you intend to get the data from range to range.

    So, for example, if you are looking at every UK postal code, there must be a way to extract that information one postal code at a time. You then build that one chart off of the first extract. Then you repeat that process postal code after postal code.

    This can be done pretty easily with VBA. Just need a sample of the raw data to test with.

  7. #7
    Registered User
    Join Date
    04-08-2022
    Location
    London, England
    MS-Off Ver
    O365
    Posts
    10

    Re: Excel Charts - Copying and pasting to new destination cells

    I can use VBA (prefer not to on multi user spreadsheets), but this spreadsheet is going to be handed off and be maintained by non excel users. They'll just about cope with copy & paste.

    I've added another example chart, and some source data, but I don't think the source data is relevent (at least in my mind), what I need a solution to is chart functionality rather than extraction of source data, how do I copy a chart and it's reference cells. In the attached example, I want to copy the chart multiple times and simply update the coloured cell in J6 to auto populate the reference data as needed.

    I've searched the Web relentlessly, and only can find solutions which involves copying it to another workbook, but that would probably take longer than repointing every chart.

    I was hoping this was an easy hack solution, but seems it may just be a limitation of excel.
    Attached Files Attached Files

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Excel Charts - Copying and pasting to new destination cells

    Quote Originally Posted by Jimbo79 View Post
    I can use VBA (prefer not to on multiuser spreadsheets), but I don't think the source data is relevant (at least in my mind).
    Relevant is subjective to who is helping you find a solution here. I don't know of a way to copy and paste the chart and data and for it all to follow. It does seems VBA is the best solution.

    Since I don't have a manually solution, I'll post this thread to our "help" area to see if somebody else has something to provide.

    Hang on

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Excel Charts - Copying and pasting to new destination cells

    Delete delete.

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Excel Charts - Copying and pasting to new destination cells

    If the data are not sensitive to the users, why not use PivotTable & Chart with location as a Filter.

  11. #11
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    365 32bit Win
    Posts
    1,909

    Re: Excel Charts - Copying and pasting to new destination cells

    Maybe try spark lines?

+ 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. Copying & Pasting Ranges & Charts to Multi-Slide PowerPoint Unreliable
    By ChrisHook in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2019, 07:13 PM
  2. Copy chart from Excel to PPT, but pasting with destination theme and embed object?
    By mastro1978 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2014, 09:23 AM
  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. Macro for copying charts to another workbook and pasting as an picture?
    By chuggins143 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-07-2013, 01:41 AM
  5. Copying and pasting columns that include charts
    By betsyme in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-01-2013, 07:56 PM
  6. Copying/Pasting charts
    By compulsiveguile in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-19-2008, 04:05 PM
  7. Copying and pasting charts in different worksheets
    By pittopitto in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-02-2007, 08:34 AM

Tags for this Thread

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