+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 : Return Multiple Matches

  1. #1
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Return Multiple Matches

    Ok i just got done reading about 40 posts with similar titles, but non of them seem to really have anything to do with returning multiple matches.

    so i have a list of LOCATIONS in column A

    a list of PART Numbers in column B

    and the QTY in column C.

    sometimes the locations have the same part number. I have a search feature set up, i can look them up one by one and it auto filters but i would like to be able to make a list of everything i need, and it return the all the locations a certain part number is in.
    Please Login or Register  to view this content.
    i tried this but i dont really know what the hell it means.
    Last edited by NBVC; 11-23-2010 at 12:44 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return Multiple Matches

    Try this:

    in an new column in SWITCH at row 2 enter:

    Please Login or Register  to view this content.
    where MAIN is the name of the other sheet where you have the search input value and D$1:D1 assumes you are entering this formula in D2.. adjust as necessary.

    Then in an empty cell:
    Please Login or Register  to view this content.
    again where column D is where you entered the previous formula.

    Now back on your main sheet.

    Please Login or Register  to view this content.
    WHERE MAIN!E2 is where you entered the MAX() formula...

    copied down as far as you want.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Return Multiple Matches

    yea it just returns NA. And yes i put everything in the correct spot. it gave me an error with the last code you gave me. thanks anyways man.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return Multiple Matches

    The last formula should have been:

    Please Login or Register  to view this content.
    if still a problem, post a sample workbook.

  5. #5
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Return Multiple Matches

    Ok here is the sample work book. i changed a few things because i realized if we got this to work i would no longer need the switch sheet, as all it did was reverse column a and b from a different sheet.

    the sheet with my locations is called Master

    the sheet with the counts is called Counts
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return Multiple Matches

    I am now confused as to what you need. Please elaborate with your new workbook as to what exactly you are needing.

  7. #7
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Return Multiple Matches

    ok...

    i need to be able to type in a tag id in column A on the count sheet and it tell me in column E of the count sheet, a list of all the locations the tag id i typed is in. the locations are on the sheet called Master.

    so i type in a tag id, and it returns a list of matches from the master sheet.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return Multiple Matches

    See attached.

    I added some helper columns to find the matches...

    In Master C5:

    Please Login or Register  to view this content.
    copied down, creates a list that counts each item in the list cumulatively.

    In Counts E2:
    Please Login or Register  to view this content.
    copied down, gives total matches of each item

    In Counts F2:

    Please Login or Register  to view this content.
    copied down and across as far as you need, gives matching locations.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Return Multiple Matches

    thanks man that is exactly what i wanted. HIGH FIVE.

+ 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