+ Reply to Thread
Results 1 to 10 of 10

Gather information across multiple sheets where the info may be in different cells

  1. #1
    Registered User
    Join Date
    10-26-2023
    Location
    North Carolina
    MS-Off Ver
    MSO 365
    Posts
    5

    Gather information across multiple sheets where the info may be in different cells

    Hello

    I need to gather information from multiple sheets and post in a cumulative sheet in the same workbook - Model & Serial #'s. However, the data is not in the same cell in each worksheet. It is in the same column but not the same row as it's listed on the bottom of an invoice and the lines on that change depending on how many lines are on the invoice. HOWEVER, the header for the data that I need is the same. Ideally there would be ANOTHER report that I could run that would show this data - unfortunately there is not. Apparently it's a work in progress. Therefore I need to create my own workaround. Is there a way to reference data based on a common header and dump it back into one cumulative sheet?
    Attached Files Attached Files
    Last edited by Templynne; 10-27-2023 at 06:35 AM. Reason: removed pic, uploaded file

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,671

    Re: Gather information across multiple sheets where the info may be in different cells

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-26-2023
    Location
    North Carolina
    MS-Off Ver
    MSO 365
    Posts
    5

    Re: Gather information across multiple sheets where the info may be in different cells

    Thank you. I believe I did it correctly this time.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Gather information across multiple sheets where the info may be in different cells

    one way:

    =LET(A,VSTACK(Sheet1:Sheet4!$A$1:$B$100),B,FILTER(A,INDEX(A,,1)<>""),INDEX(B,MATCH(1,(INDEX(B,,1)=B2)*(INDEX(B,,2)=C2),0)+2,))

    copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,671

    Re: Gather information across multiple sheets where the info may be in different cells

    Try:

    =INDEX(INDIRECT("'"&A2&"'!a2:a5000"),MATCH(D$1,INDIRECT("'"&A2&"'!a1:a4999"),0))

    and:

    =INDEX(INDIRECT("'"&A2&"'!b2:b5000"),MATCH(E$1,INDIRECT("'"&A2&"'!b1:b4999"),0))

  6. #6
    Registered User
    Join Date
    10-26-2023
    Location
    North Carolina
    MS-Off Ver
    MSO 365
    Posts
    5

    Re: Gather information across multiple sheets where the info may be in different cells

    I made my sample too simplistic because I cannot replicate these formulas in my workbook. So I've copied some pages and removed all the personal data to show how this sheet is set up. The columns that the model and serial number are in are not simply A & B or next to each other. They are actually in merged cells. Model is in column T and Serial Number is in Column Y.
    Attached Files Attached Files
    Last edited by Templynne; 10-27-2023 at 10:22 AM.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Gather information across multiple sheets where the info may be in different cells

    The attachment didn't attach. Please try again.

  8. #8
    Registered User
    Join Date
    10-26-2023
    Location
    North Carolina
    MS-Off Ver
    MSO 365
    Posts
    5

    Re: Gather information across multiple sheets where the info may be in different cells

    I did submit the reply without it. But I think I added it as you were replying - it looks to be there now. LMK if you still don't see it.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Gather information across multiple sheets where the info may be in different cells

    I hate using INDIRECT, it can cause performance issues because it updates every time anything changes. But if you have LARGE numbers of sheets, mine will become impractical, too.

    =IFERROR(INDEX(INDIRECT("'"&A2&"'!T:T"),MATCH(D$1,INDIRECT("'"&A2&"'!T:T"),0)+1),"")

    see file.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-26-2023
    Location
    North Carolina
    MS-Off Ver
    MSO 365
    Posts
    5

    Re: Gather information across multiple sheets where the info may be in different cells

    Beautiful! Thank you so much!!!!

+ 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. Best way to gather/sort/filter from multiple sheets
    By jme1013 in forum Excel General
    Replies: 2
    Last Post: 02-09-2020, 04:26 PM
  2. Gather data multiple sheets into 1 workbook
    By Nnex1996 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2019, 03:37 AM
  3. Gather data from multiple sheets
    By nchinas in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-09-2015, 03:57 PM
  4. [SOLVED] Loop through sheets to gather info on first sheet
    By amphinomos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2014, 07:52 AM
  5. Need to gather information from one sheet to have relevant info on another
    By TRLWNC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2014, 05:09 PM
  6. Replies: 10
    Last Post: 12-30-2013, 03:01 AM
  7. Replies: 0
    Last Post: 07-27-2011, 01:00 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