+ Reply to Thread
Results 1 to 6 of 6

Formula to lookup ID in multiple worksheets then return a value

  1. #1
    Registered User
    Join Date
    02-08-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    66

    Formula to lookup ID in multiple worksheets then return a value

    I'm looking for a ofrmula to look up a cell value and find that value across multiple worksheets then return another field. I tried using a Filter countif indirect using a 3D name manger that should look up for multple tabs but I can't get it to work. Any other ideas would be appreciated.

    Here's the formula that I think is close but not quite working.
    =TEXTJOIN("; ",,FILTER(Sheetlist,COUNTIF(INDIRECT("'"&Sheetlist&"'!f1:f5000"),C4)))
    Attached Files Attached Files

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

    Re: Formula to lookup ID in multiple worksheets then return a value

    I don't understand the construct.

    SheetList is this: ='Tab 1:Tab 3'!$F$4:$F$10

    So what are you trying to do with this?

    INDIRECT("'"&Sheetlist&"'!f1:f5000")

    Obviously that would resolve to:

    ='Tab 1:Tab 3'!$F$4:$F$10'!f1:f5000

    which will, of course, throw an error.

    Explain in WORDS what you want the formula to do (I mean function, not the result of it, which I can see in your workbook) - what in your mind should this be doing mechanically?
    Last edited by AliGW; 08-05-2023 at 01:01 AM. Reason: Typo fixed.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula to lookup ID in multiple worksheets then return a value

    I've created two named ranges:

    SheetListE: ='Tab 1:Tab 3'!$E$4:$E$10
    SheetListF: ='Tab 1:Tab 3'!$F$4:$F$10

    Then this:

    =LET(E,VSTACK(SheetListE),F,VSTACK(SheetListF),TEXTJOIN(";",,FILTER(F,E=C4)))
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula to lookup ID in multiple worksheets then return a value

    For my own amusement, and in case it's the next logical step for you, I refined the workbook a little. See what you think.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,003

    Re: Formula to lookup ID in multiple worksheets then return a value

    Another option, clean all exptected result in column D.

    Try this in D4.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula to lookup ID in multiple worksheets then return a value

    Glad to have helped.

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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: 1
    Last Post: 02-12-2021, 07:21 PM
  2. Replies: 3
    Last Post: 08-16-2016, 07:58 AM
  3. [SOLVED] Formula to Lookup Multiple Criteria in Two Worksheets
    By hammer2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-11-2016, 12:47 AM
  4. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  5. [SOLVED] Lookup formula from 2 worksheets listing multiple results
    By AndreiC in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2013, 12:48 PM
  6. Replies: 3
    Last Post: 01-24-2013, 12:05 PM
  7. How can use a lookup formula through multiple worksheets?
    By stumped.... in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-30-2006, 06:00 PM

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