SOLVED

Excel formula help needed

%3CLINGO-SUB%20id%3D%22lingo-sub-1573735%22%20slang%3D%22en-US%22%3EExcel%20formula%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1573735%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20team%2C%3C%2FP%3E%3CP%3Ei%20have%20an%20excel%20file%20with%202%20sheets.%20Sheet%201%20is%20what%20i%20ordered%2C%20and%20sheet%202%20is%20what%20i%20received.%3C%2FP%3E%3CP%3Eso%20i%20am%20trying%20to%20do%20the%20following%3A%3C%2FP%3E%3CP%3EIn%20sheet%201%20column%20N%2C%20i%20am%20trying%20to%20get%20the%20date%20of%20the%20item%20that%20matches%20criteria%201%20and%202%20from%20sheet%202%20when%20received.%3C%2FP%3E%3CP%3ESo%20when%20item%20in%20Column%20M%20in%20sheet%201%2C%20example%20R000025081%2C%20and%20column%20E%20in%20sheet%201%2C%20example%201002740521%2C%20when%20they%20match%20same%20in%20sheet%202%2C%20to%20return%20column%20D%20receiving%20date%2C%20if%20possible%20if%20the%20receiving%20date%20is%20older%20that%20date%20in%20the%20ordering%20sheet%201%2C%3C%2FP%3E%3CP%3EAny%20help%3F%20i%20manage%20to%20get%20return%20cell%20for%20date%2C%20but%20only%20when%20i%20match%201%20cell.%3C%2FP%3E%3CP%3Eany%20help%20is%20appreciated%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1573735%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1573742%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1573742%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F752834%22%20target%3D%22_blank%22%3E%40Ljube86%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20for%20you%20to%20post%20the%20actual%20spreadsheet%3F%20I%20think%20this%20is%20easily%20resolved%2C%20but%20it's%20a%20lot%20easier%20to%20demonstrate%20it%20with%20your%20actual%20sheet%2C%20so%20as%20to%20not%20have%20to%20create%20my%20own%20replica%20based%20on%20your%20image.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1573758%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1573758%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20looking%20into%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1573916%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1573916%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F752834%22%20target%3D%22_blank%22%3E%40Ljube86%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20variant%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIF(%0A%20%20%20%20%20%20IFNA(INDEX(Received!%24D%242%3A%24D%2410%2CMATCH(C2%26amp%3BA2%2CReceived!%24A%242%3A%24A%2410%26amp%3BReceived!%24B%242%3A%24B%2410%2C0))%2C0)%26gt%3BB2%2C%0A%20%20%20%20%20%20IFNA(INDEX(Received!%24D%242%3A%24D%2410%2CMATCH(C2%26amp%3BA2%2CReceived!%24A%242%3A%24A%2410%26amp%3BReceived!%24B%242%3A%24B%2410%2C0))%2C%22%22)%2C%0A%22%22)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1574347%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1574347%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20gents.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1574736%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1574736%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F752834%22%20target%3D%22_blank%22%3E%40Ljube86%3C%2FA%3E%26nbsp%3B%2C%20you%20are%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello team,

i have an excel file with 2 sheets. Sheet 1 is what i ordered, and sheet 2 is what i received.

so i am trying to do the following:

In sheet 1 column N, i am trying to get the date of the item that matches criteria 1 and 2 from sheet 2 when received.

So when item in Column M in sheet 1, example R000025081, and column E in sheet 1, example 1002740521, when they match same in sheet 2, to return column D receiving date, if possible if the receiving date is older that date in the ordering sheet 1,

Any help? i manage to get return cell for date, but only when i match 1 cell.

any help is appreciated

5 Replies

@Ljube86 

 

Is it possible for you to post the actual spreadsheet? I think this is easily resolved, but it's a lot easier to demonstrate it with your actual sheet, so as to not have to create my own replica based on your image.

@mathetes 

Thank you for looking into this.

Best Response confirmed by Ljube86 (New Contributor)
Solution

@Ljube86 

As variant

=IF(
      IFNA(INDEX(Received!$D$2:$D$10,MATCH(C2&A2,Received!$A$2:$A$10&Received!$B$2:$B$10,0)),0)>B2,
      IFNA(INDEX(Received!$D$2:$D$10,MATCH(C2&A2,Received!$A$2:$A$10&Received!$B$2:$B$10,0)),""),
"")

Thank you gents. 

@Ljube86 , you are welcome