+ Reply to Thread
Results 1 to 19 of 19

Formula to Extract a List of Matches

  1. #1
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Formula to Extract a List of Matches

    Dear Experts,

    I need your help

    I have a list of article numbers in column A. One in each cell.
    Next to it I have its storage places in column B.

    in an other sheet I am using a vlookup to find where the article belongs.

    My problem is: One article may be twice or three times in the list with different storage place.

    somehow I should be able to find all storage places but of course the vlookup finds the first one and aborts... the result shouldnt be necessary be in one cell...can be next to each other..


    (I was experimenting with pivot too but couldnt solve the problem)



    Could somebody help me?

    Thank you ineed!!
    best regards
    PeterAttachment 615724Attachment 615725
    Attached Files Attached Files
    Last edited by peterschein; 03-16-2019 at 09:30 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: extended vlookup??

    here is a formula I used that you might be able to adjust...
    =IFERROR(INDEX($B$1197:$B$1205,AGGREGATE(15,6,ROW($A$1:$A$1205)/($A$1197:$A$1205=C$1197),ROWS($A$1:A1))-(1-1),COLUMN()-(COLUMN()-1),1),"")

    NOW, the range that the looked up value was returning is B1197:b1205 - which would be the range for your storage place.
    Keep anything that begins in A1 or column 1 and adjust the other parts to your range. My match is C1197, so that would be your vlookup value, in your case the article. If it is elsewhere point to that cell.
    Hopefully you can adjust to your needs and this isn't an array formula.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Re: extended vlookup??

    Thank you Sam but unfortunately I couldnt adjust it :/

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: extended vlookup??

    if you post a sample workbook you can get a more accurate formula. Just enough representative samples AND expected results so we can see what you are dealing with. Go advanced then manage attachments to upload a workbook.

  5. #5
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Re: extended vlookup??

    unfortunately somehow i couldnt upload a file just two pictures.. I hope you Sam or somebody can help me


    thanks a lot!!

  6. #6
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: extended vlookup??

    To upload a file, click Go Advanced, then Manage Attachments. Click Browse to find your file, click Open, then click Upload. Then you can click Submit Reply, and the file should be attached.

  7. #7
    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,931

    Re: extended vlookup??

    Try this:

    =WENNFEHLER(INDEX($B$1197:$B$1205;AGGREGAT(15;6;ZEILE($A$1:$A$1205)/($A$1197:$A$1205=C$1197);ZEILEN($A$1:A1))-(1-1);SPALTE()-(SPALTE()-1);1);"")

    https://en.excel-translator.de/translator/
    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.

  8. #8
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Re: extended vlookup??

    Thank you Ali, I read that line somewhere too but till now I couldnt adapt it to my needs..I will keep trying.

  9. #9
    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,931

    Re: extended vlookup??

    It's just a translation of the formula in post #2.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please read our rules regarding thread titles. I have changed yours for you this time, but next time please make sure you use a more descriptive one yourself.
    Last edited by AliGW; 03-16-2019 at 08:24 AM.

  10. #10
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Re: extended vlookup??

    You are right than I realised that it was a comment from before I was just on the way. sorry about that.
    I try now to upload the file with the method you described. I hope it works now.

    Thank you indeed for your kind help!

    br
    Peter
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Formula to Extract a List of Matches

    Try this:

    =IFERROR(INDEX(Sheet1!$B:$B,AGGREGATE(15,6,ROW(Sheet1!$A$2:$A$13)/(Sheet1!$A$2:$A$13=$A$5),COLUMNS($B$5:B5))),"")
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Formula to Extract a List of Matches

    Named ranges:
    Article =Sheet1!$A$2:$A$13
    ArticleNumbers =Sheet3!$A$2:$A$11
    srchval =sheet2!$A$5
    Storage =Sheet1!$B$2:$B$13
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

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

    Re: Formula to Extract a List of Matches

    In B5 then drag across

    =IFERROR(INDEX(Sheet1!$B$2:$B$13,AGGREGATE(15,6,ROW(Sheet1!$B$2:$B$13)/(Sheet1!$A$2:$A$13=$A5),COLUMNS($B5:B5))-ROW($B$2)+1),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  14. #14
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Re: Formula to Extract a List of Matches

    Thank you all for your help! I was trying to solve that problem for a long time! you helped mee to boost my career

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

    Re: Formula to Extract a List of Matches

    Thanks for feed back.

  16. #16
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Re: Formula to Extract a List of Matches

    Dear kvsrinivasamurthy


    I tried now to adopt your formula to the real life file but I get wrong datas. Could you please help me by spotting what is wrong with it??

    would be very greatful!


    thank you
    br
    Peter
    Attached Files Attached Files

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

    Re: Formula to Extract a List of Matches

    Here is the corrected formula.Red Colour.
    3 is the starting row number of data of verp!$B$3:$B$2500
    =IFERROR(INDEX(verp!$B$3:$B$2500,AGGREGATE(15,6,ROW(verp!$B$3:$B$2500)/(verp!$A$3:$A$2500=$A4),COLUMNS($F4:F4))-ROW($B$3)+1),"")

  18. #18
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Re: Formula to Extract a List of Matches

    jeez... I am sorry! thank you for your time!! it works

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

    Re: Formula to Extract a List of Matches

    Thanks for feedback

+ 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] row source extended
    By Quicksnot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2016, 02:32 PM
  2. Help to find universal extended VLOOKUP tool
    By Remphan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2016, 03:11 AM
  3. Extended VLOOKUP on matching of 2 different column values
    By m2krishnan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2013, 02:19 AM
  4. Multiple Row Match (VLOOKUP Extended) to find Multiple Rows
    By Niper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2011, 10:58 AM
  5. Extended VLOOKUP to match multiple entries
    By Saarang84 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-03-2010, 01:26 AM
  6. Sum extended price without extended price column
    By kellyfspringer in forum Excel General
    Replies: 2
    Last Post: 07-14-2009, 09:45 PM
  7. Geo mean extended
    By Stephen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-18-2005, 11:06 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