+ Reply to Thread
Results 1 to 8 of 8

lookup function to display multiple results from multiple sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    07-14-2020
    Location
    Prague
    MS-Off Ver
    MS Office 2016
    Posts
    24

    Question lookup function to display multiple results from multiple sheets

    task sovled
    Attached Files Attached Files
    Last edited by HelenaG; 06-21-2022 at 06:08 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,069

    Re: lookup function to display multiple results from multiple sheets

    With Excel 365, you should look at using FILTER. For example:
    Formula: copy to clipboard
    =FILTER('Test case 1'!G13:G22,'Test case 1'!F13:F22="Failed")
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-14-2020
    Location
    Prague
    MS-Off Ver
    MS Office 2016
    Posts
    24

    Re: lookup function to display multiple results from multiple sheets

    i discovered the filter function in 365, unfortunately i am using Excel 2016

    thanks for your advice

  4. #4
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: lookup function to display multiple results from multiple sheets

    Please updater your profile, it's indicated you use O365 of excel not Excel 2016.

    If you don't mind to create listing of sheetname manually and a lot of helper cells.

    1. Create table contains sheetname and use countif + indirect to count for 'failed' in each sheet.

    2. Use helper cells.

    Sheetname : K2
    =IF(ISTEXT(M1),INDEX(Table1[[#All],[Sheetname]],MATCH(K1,Table1[[#All],[Sheetname]],0)+1),
    IF(M1<L1,K1,
    IF(K1<>0,INDEX(Table1[[#All],[Sheetname]],MATCH(K1,Table1[[#All],[Sheetname]],0)+1),0)))

    Total of failed : L2
    =IF(K2<>0,VLOOKUP(K2,Table1[#All],2,FALSE),0)

    Current Row : M2
    =IF(K2<>0,IF(K1<>K2,IF(L2>0,1,0),M1+1),0)

    3. Output area
    A2
    =IF($M2=1,INDIRECT("'"&$K2&"'!G3"),"")

    B2
    =IF($M2=1,INDIRECT("'"&$K2&"'!D2"),"")

    C2 (note : the formula is fixed to rows 13-22)
    =IF($M2>0,INDEX(INDIRECT("'"&$K2&"'!G13:G22"),AGGREGATE(15,6,(ROW(INDIRECT("'"&$K2&"'!F13:F22"))-12)/(1/((INDIRECT("'"&$K2&"'!F13:F22"))="failed")),$M2)),"")

    D2
    =IF($M2=1,INDIRECT("'"&$K2&"'!G5"),"")

    E2
    =IF($M2=1,INDIRECT("'"&$K2&"'!G7"),"")

    Regards.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-14-2020
    Location
    Prague
    MS-Off Ver
    MS Office 2016
    Posts
    24

    Re: lookup function to display multiple results from multiple sheets

    @Menem

    Thank you very much, the solution works perfectly.

    Appreciate your help.
    Last edited by AliGW; 06-16-2022 at 07:26 AM. Reason: PLEASE don't quote unnecessarily!

  6. #6
    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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,324

    Re: lookup function to display multiple results from multiple sheets

    i discovered the filter function in 365, unfortunately i am using Excel 2016
    Then please update your misleading forum profile. Thanks.
    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.

  7. #7
    Registered User
    Join Date
    07-14-2020
    Location
    Prague
    MS-Off Ver
    MS Office 2016
    Posts
    24

    Re: lookup function to display multiple results from multiple sheets

    updated my profile, didnt realize i had O365 which i was previously using... thanks for notifying me.

  8. #8
    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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,324

    Re: lookup function to display multiple results from multiple sheets

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you 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. [SOLVED] Search over multiple sheets and display results
    By cedricmeier in forum Excel General
    Replies: 6
    Last Post: 08-31-2014, 02:21 PM
  2. multiple results display after filter function
    By Morphyus C via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  3. [SOLVED] multiple results display after filter function
    By Morphyus C via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  4. [SOLVED] multiple results display after filter function
    By Morphyus C via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] multiple results display after filter function
    By Morphyus C via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. multiple results display after filter function
    By Morphyus C via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. multiple results display after filter function
    By Morphyus C via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 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