+ Reply to Thread
Results 1 to 5 of 5

Return information by searchword

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Return information by searchword

    Hi,

    I have attached a samplefile, but I will try to explane here what I will achieve.

    In B2 there is a scrolldownlist from collumn G. When searching in this list I want all the data that contains the same searchword in area J2 to N100 to be returned to A5 to E100


    Hope someone can help me find write a macro to help me solve this

    Thanks in advance


    Best regards
    Øystein
    Attached Files Attached Files

  2. #2
    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,426

    Re: Return information by searchword

    Is a formula any ise to you?

    =IF($B$2="","",IFERROR(INDEX(J:J,AGGREGATE(15,6,ROW($J$2:$J$20)/($J$2:$J$20=$B$2),ROWS(A$5:A5))),""))

    in B2, copied across and 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

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,669

    Re: Return information by searchword

    Formula will do.
    In A5 copied to full range.
    Formula: copy to clipboard
    =IFERROR(INDEX(J$2:J$11,AGGREGATE(15,6,ROW($J$2:$J$100)/($J$2:$J$100=$B$2),ROWS(A$5:A5))-ROW($J$1)),"")

    Format columns suitably for date and currency.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 02-19-2024 at 04:11 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Return information by searchword

    Hi,

    Thanks for youre reply
    After working with the formula I made it work perfect between sheets. What I dont understand is the part that says "AGGREGATE(15,6,".
    Can you explaine this part?

    Regards
    Øystein

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,669

    Re: Return information by searchword

    AGGREGATE(15,6,

    Aggregate is function to get result from the array comes after 15,6,

    15 for selecting the small value from the array.

    6 is to avoid error values in the array.

+ 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. Return all row information consist of the look up value
    By reeNce in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-20-2015, 07:57 AM
  2. Return all row information consist of the look up value
    By reeNce in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-16-2015, 03:23 PM
  3. Return corresponding information with minimum value
    By CassyM in forum Excel General
    Replies: 3
    Last Post: 03-30-2012, 05:24 PM
  4. Return Information From Another Tab
    By Namundy in forum Excel General
    Replies: 11
    Last Post: 03-16-2012, 09:32 AM
  5. Return information associated with a cell
    By jwarner22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-30-2012, 09:42 AM
  6. Trying to do a lookup + Return of information
    By tcdaa in forum Excel General
    Replies: 1
    Last Post: 12-01-2011, 01:08 PM
  7. Return max date information
    By Kolacube in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-26-2008, 04:54 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