+ Reply to Thread
Results 1 to 5 of 5

Index/Match with multiple results

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    9

    Index/Match with multiple results

    Hi folks.
    I'm using this formula:
    =INDEX('Sheet1 BV'!$A$1:$G$10000,MATCH($F$2,'Sheet1 BV'!$G$1:$G$10000,0),2)

    to return lot numbers in column B from dates in column G, but some dates have multiple lot numbers in different rows (each lot number is in a row on it's own with a date, but sometimes a date will appear on more than one lot number). The formula i'm using obviously just returns the first result, but can anyone suggest how I may return all valid results in the column? I've tried searching around & while there are similar questions the answers don't seem to work out when I adjust them for my own application.

    Any help is much appreciated,
    Andy

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index/Match with multiple results

    Maybe with an Array INDEX, but i need a sample workbook.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Index/Match with multiple results

    Hi Fotis.
    Here is a stripped down version containing the relevant parts to keep it simple.

    Thanks,
    Andy
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index/Match with multiple results

    In your example, which is the expected result and why?

  5. #5
    Registered User
    Join Date
    08-09-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Index/Match with multiple results

    Hi Fotis.
    In that example, the yellow cell in the 'Converter' worksheet is the result, which is a lot number, based on cell F2 which contains the date. The formula looks up the date on the 'Sheet1 BV' worksheet & returns the lot number. However there may be several results & all I am getting is the first one at the moment.

    The date I had in there may be unique, but others such as 11/05/2012 have more than one entries (3 I think for that one), & I need to return all of the corresponding lot numbers from column B for that date.

    Cheers,
    Andy

+ 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