+ Reply to Thread
Results 1 to 10 of 10

Search and result

  1. #1
    Registered User
    Join Date
    04-01-2023
    Location
    Rotterdam, Nederland
    MS-Off Ver
    Office 365
    Posts
    53

    Search and result

    Can someone please help me with my search request? I am looking for a way to find information in a dataset.

    I tried to find the solution with the formula ?=WEGLATEN(REDUCE(0;A2#;LAMBDA(y;z;VERT.STAPELEN(y;ALS(z="";"";TEKST.COMBINEREN(", ";;UNIEK(NAAR.KOLOM(BYCOL(TEKST.SPLITSEN(z;", ");LAMBDA(x;FILTER(Blad2!B2:B151;Blad2!A2:A151=x)));3)))))));1)?

    Unfortunately, it?s not working.

    Here you find the Excel file:

    Excel search.xlsx

    ------------

    Find the value from column A of Sheet 1 in column A of Sheet 2, taking into account values separated by a comma. If the value is found, display the corresponding value from column B of Sheet 2.

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Search and result

    The whole column in one go, please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In dutch:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 08-31-2023 at 08:27 AM.

  3. #3
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,296

    Re: Search and result

    Power Query
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: Search and result

    Your query stops working if you add a row with more than 6 numbers in a cell.

    The third step is hard coded

    Please Login or Register  to view this content.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Search and result

    The formula in post #2 does not suffer from this.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Search and result

    With your formula it should be
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In Dutch (hopefully)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-01-2023
    Location
    Rotterdam, Nederland
    MS-Off Ver
    Office 365
    Posts
    53

    Re: Search and result

    Thank you HansDouwe for your help. You gave me the correct answer very quickly. I can now continue building my Excel. Have a nice day!

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Search and result

    Glad to help & thanks for the feedback.

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Search and result

    You are Welcome!

    Thanks for the feedback and rep . Glad to have helped.

  10. #10
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: Search and result

    To also show a dynamic Power Query solution

    PHP Code: 
    let
        Source 
    Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
        
    result Table.AddColumn(Source"Custom"each let r Table.FromList(Text.Split(Text.From([MM]),", ")) in Text.Combine(Table.Join(r"Column1",Table1"test")[Mitigating Measures],"#(lf)"))
    in
        result 
    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. Search and result
    By jigarecity in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-19-2021, 11:24 AM
  2. 2 step search - find results in search result
    By marcoh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2018, 03:26 PM
  3. VBA Excel Google Search Address and Pull First Search Result
    By senker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2017, 11:21 PM
  4. [SOLVED] Index/Match result should again search for zero result
    By ursanil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2014, 04:45 AM
  5. VBA Code - Search text & search number & search qty and result - Urgent Please
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 10:51 AM
  6. Replies: 2
    Last Post: 09-13-2013, 11:02 AM
  7. how to use VBA to search and return search result in the user form
    By pearlynie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2013, 07:58 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