+ Reply to Thread
Results 1 to 6 of 6

INDEX/MATCH not working for multiple criteria

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    Reedley, CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    INDEX/MATCH not working for multiple criteria

    My data is attached. I want to match the time and date from the "Time Received - Nectarines" worksheet to the time/date in the "Time Received Data Nect" so that the Bucket count will show up in the appropriate time/date cell. I tried:

    =INDEX('Time Received Data Nect'!$D$2:$D$954,MATCH(1,'Time Received - Nectarines'!A15='Time Received Data Nect'!$C$2:$C$954)*('Time Received - Nectarines'!R1='Time Received Data Nect'!$A$2:$A$954),0)

    in Cell R15 (Date 5/17, Time 13:00), but all I get is a #NA value. I have the cells formatted as "General."
    Attached Files Attached Files

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: INDEX/MATCH not working for multiple criteria

    You could try this in B2, then fill down, then fill right:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    - Moo

    Note: In cell A13, there was something wrong with your entry of 11:00, which led to cell R13 coming up as 0, instead of 1,200... So, I deleted the contents cell A13 and re-typed in 11:00, at which point the correct result for cell R13 appeared.
    Last edited by Moo the Dog; 12-27-2012 at 04:31 PM.

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: INDEX/MATCH not working for multiple criteria

    Hello

    try this in B2

    Please Login or Register  to view this content.
    Fill across the table
    Attached Files Attached Files
    Last edited by contaminated; 12-27-2012 at 04:43 PM.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: INDEX/MATCH not working for multiple criteria

    lukesanborn,

    I'm guessing the reason your initial formula is returning #N/A error is because it is an ARRAY formula, but you applied it by hitting Enter, instead of Control + Shift + Enter... also, the original formula can be shortened to:

    For cell R15:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To apply the array formula:
    Select cell R15, clear out the contents in the formula bar, paste the above formula into it and hit Ctrl + Shift + Enter and it should work.

    HOWEVER... it is an ARRAY formula. I would recommend going with the SUMPRODUCT formula I posted earlier (non-array) as it will process faster and use far less resources given the # of cells that formula will be inserted into!

    Also...
    You missed an opening parenthesis just after the MATCH(1,(.... as well as a closing parenthesis at the end.
    You also didn't create row/column absolute references for your match columns. In your original formula, A15 should be $A15, and R1 should be R$1. Doing so will enable you to copy/fill that cell in any direction and have the formula adjust correctly.

    - Moo
    Last edited by Moo the Dog; 12-27-2012 at 04:52 PM. Reason: Added notes

  5. #5
    Registered User
    Join Date
    06-25-2012
    Location
    Reedley, CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: INDEX/MATCH not working for multiple criteria

    I went ahead and used the sumproduct formula you supplied. Thank you for your help and for clearly listing the mistakes I made.

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: INDEX/MATCH not working for multiple criteria

    You're welcome. Glad I could help.

    - Moo

+ 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