+ Reply to Thread
Results 1 to 20 of 20

Display multiple search results by column

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Display multiple search results by column

    hopefully someone can help me, i have tried a few different array formulas, but nothing seems to get exactly what i need.

    i need to match a certain word from column a with its matching word (can occur multiple times) in column i with the adjacent word in column j.

    i have not been able to do this accurately.

    can anyone help?

    thanks in advance.
    Last edited by Declan.Ryan; 11-09-2012 at 08:52 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Display multiple search results by column

    Please upload a sample workbook.

  3. #3
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display multiple search results by column

    this one has headers: example1.xls
    Attached Files Attached Files
    Last edited by Declan.Ryan; 11-09-2012 at 05:41 AM. Reason: better attachment

  4. #4
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Display multiple search results by column

    how the multiple records should be handled? I column has three Abergavenny, whereas A column has only one. Which value you to want to lookup?

  5. #5
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display multiple search results by column

    I need to be able to list next to the Abergavenny in column A what is next to each Abergavenny in column I

  6. #6
    Forum Contributor
    Join Date
    09-11-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2013
    Posts
    103

    Re: Display multiple search results by column

    I got this formula from this forum.. See attachment.. Hope it helps,
    Attached Files Attached Files
    Click * to reward me...
    Thank you...

  7. #7
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display multiple search results by column

    Unfortunately that is not what i am looking for, thank you for the help though.

    the formula itself would need to be in column b and list all of the adjacent TOCs to the matching train station.

    apologies for my lack of knowledge, i am determined to learn!

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Display multiple search results by column

    Quote Originally Posted by Declan.Ryan View Post
    this one has headers
    Try the below code in standard module

    Please Login or Register  to view this content.

    =GetMatches(LookupValue,LookupRange,ResultRange)

    In B1 cell
    =GetMatches(A1,E1:E12,F1:F12)
    Drag it down.

    Refer the attached excel for details.

    Edit: Protect the range =getmatches(A1,$E$1:$E$12,$F$1:$F$12)
    Attached Files Attached Files
    Last edited by :) Sixthsense :); 11-09-2012 at 06:24 AM. Reason: Code Tag Applied


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  9. #9
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Display multiple search results by column

    Check the attached sheet. I have used named formula.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display multiple search results by column

    this seems to be working, is it normal for computers to really struggle with modules? excel is using 100% of the cpu at the moment.

    i'll give it a while until it's stopped freaking out.

  11. #11
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display multiple search results by column

    Doesnt seem like the named formula is working either, seemed fine when you sent it to me but is not working now

  12. #12
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Display multiple search results by column

    Are you using excel 2003 version?

  13. #13
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display multiple search results by column

    yes

    (need 10 characters)

  14. #14
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Display multiple search results by column

    in the named formula, i have hard coded no. of rows in i and j column. It will take only upto 13. Since you have mentioned TOC upto 7, that is also hard coded. Can you modify that?

    And iferror formula won't work in your version.

  15. #15
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display multiple search results by column

    after trying out with module codes, i dont think they are an option anymore, my computer just cannot handle it.

    is there a way to do it without modules?

  16. #16
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display multiple search results by column

    yes i modified it, but as you said the iferror formula will not work with my version.

  17. #17
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Display multiple search results by column

    Use this instead of that formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Select B2:H2, enter this formula, confirm it with Ctrl+Shift+enter

    Then you can copy to other cells

  18. #18
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display multiple search results by column

    thank you so much for your continued help, unfortunately this hasn't worked either, when using it on the spreadsheet with 3500 rows it just comes out blank on every cell.

    example2.xls

    here is a larger example in hope that it may help
    Last edited by Declan.Ryan; 11-09-2012 at 08:04 AM. Reason: spelling error

  19. #19
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Display multiple search results by column

    Check the attached file. It works.

    The named formula is also array formula. You need to confirm it with ctrl+shift+enter.
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Display multiple search results by column

    hurruh! that works perfectly, thank you so much for taking your time out to help me. hope to be able to do the same one day.

    thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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