+ Reply to Thread
Results 1 to 9 of 9

Link and transpose data from multiple sheets into a summary

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Link and transpose data from multiple sheets into a summary

    Hi all,

    I'm new to the forum so hopefully this question isn't redundant. I tried searching for something similar, but didn't exactly know what to search. I'm also new to VBA and macros so please bear with me. (Please also note this is not my actual data and is simply a hypothetical situation that would represent the same circumstances, so please forgive me if the math for number of cells doesn't add up correctly in this example.)

    I'm creating a database and would like to create charts from a summary sheet linked to the changing data. I have six different sheets that are all set up identically, however have data from different sources, lets call these sheets by years, so 2000, 2001, 2002, 2003, etc. For instance cells B2:G2 in sheet "2000" are the mean, median, mode, max, min, SD, and count for January 2000 sales. Cells B3:G3 in sheet "2000" are the mean, median, mode, max, min, SD, and count for February 2000 sales. Similarly, cells B2:G2 in sheet "2001" are the mean, median, mode, max, min, SD, and count for January 2001 sales.

    Now I would like to create a summary sheet that takes the data from each individual sheet and lines it up side by side, so all of the statistics for January 2000-2005 are lined up side by side to create a chart. For example, I would like to take cells B2:G2 from sheet "2000" and link them to cells C3:C7 in sheet "summary." Then I would like to take cells B2:G2 from sheet "2001" and link them to cells D3:D7 in sheet "summary." Then I would like to take cells B2:G2 from sheet "2002" and link them to cells E3:E7 on sheet "summary." This would be repeated for six sheets. The data may also be updated in each individual sheet, so I would like to have the summary linked, rather than just cut and paste. After January 2000-2005 is summarized in cells C3:H7 in the summary sheet, I would like to put the February summary below it in cells C10:H16.

    Is it possible to setup a macro to do this? Right now I am having to go into each individual cell on the summary sheet, press "=" then click on the corresponding cell in a different worksheet. I have six worksheets in total with around 20 variables in each, and each variable has a set of 7 statistics, so it really ends up eating up a lot of time the way I am doing it now. So what I am really trying to do is line up all 7 of the statistics, from each variable in each sheet, side by side, to create a chart.

    I really appreciate any help! Thank you!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Link and transpose data from multiple sheets into a summary

    You get better help on your question, if you follow the advice in the link below.

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    10-11-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Link and transpose data from multiple sheets into a summary

    Thank you for the response. That makes much more sense. Attached is a mockup spreadsheet of what I am trying to do (Excel Mockup.xlsm). The numbers in sheets 2000-2005 are all randomly generated. I started filling in the summary sheet manually, but would like to know if there is an easier way to do it.

    I appreciate any help!

    Thanks again!

    Dustin

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Link and transpose data from multiple sheets into a summary

    Dutch
    Please Login or Register  to view this content.

    Englisch b3
    Please Login or Register  to view this content.
    See the attached file (the green cells).
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-11-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Link and transpose data from multiple sheets into a summary

    Thank you oeldere! Much appreciate!

    Could you please explain the syntax behind the formula? I'm having trouble applying the formula for the other months. For instance, how would the formula change to do the same thing for the February and March data?

    I'm assuming the &B$2& is grabbing the sheet name from the top of the column, but what does the Char(63+Row())&"2" do? I've also never seen the "&" used in formulas before. Could you please explain that as well?

    Thanks again!

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Link and transpose data from multiple sheets into a summary

    B3
    Please Login or Register  to view this content.
    Indirect will take the cells:

    B$2 will take the value in column B cell 2 (since there is no $ sign for the B, it will expand to C, D etc by dragging it to the right).

    Char(66) is letter B.

    To get that letter I took 63 + ROW().

    In B3 the formula row will give the result 3.

    So Char(63 + 3) = 66 => is letter B.

    I take this approach so you could drag it to the right.

    The & sign pulls the data together.

    Did I explained well enough?

  7. #7
    Registered User
    Join Date
    10-11-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Link and transpose data from multiple sheets into a summary

    Yes. That worked great! Thanks again!

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Link and transpose data from multiple sheets into a summary

    Thanks for the reply.

    Glad I could help.

    Here is another approach (with VBA).

    After that, I made an pivot table of the data.

    See the attached file.

    Please reply.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Link and transpose data from multiple sheets into a summary

    Another VBA, but the Months have to be merged manually, from B-H column
    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: 0
    Last Post: 07-29-2013, 03:00 AM
  2. Dynamically Link a Summary Master List to Multiple Worbooks/sheets
    By SeanPratt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2012, 01:22 PM
  3. Pulling data from Multiple sheets into a summary page
    By biz07 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2012, 10:39 AM
  4. [SOLVED] Collect data from multiple sheets into a Summary Sheet
    By Fuhgawz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2012, 12:56 PM
  5. Link Through Summary Sheets
    By CacheUK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2008, 08:01 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