match and vlookup combo

%3CLINGO-SUB%20id%3D%22lingo-sub-1788886%22%20slang%3D%22en-US%22%3Ematch%20and%20vlookup%20combo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1788886%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20retrieve%20the%20amount%20in%20January%20if%20name%20'John'%20is%20also%20matching.%26nbsp%3B%26nbsp%3B%3Dif(match(B1%2CA7%3AC11%2Cvlookup(A2%2CB7%3AC11%2C2%2Cfalse))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Maddy1010_0-1602863174492.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F227180i77F703CD5AE0C5A2%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Maddy1010_0-1602863174492.png%22%20alt%3D%22Maddy1010_0-1602863174492.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI'm%20trying%20to%20retrieve%20data%20using%20match%20and%20vlookup%20but%20it's%20not%20working.%26nbsp%3B%20The%20destination%20file%20look%20like%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Maddy1010_1-1602863202493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F227181iC89F568DD5CD5AF7%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Maddy1010_1-1602863202493.png%22%20alt%3D%22Maddy1010_1-1602863202493.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECan%20anyone%20help%3F%26nbsp%3B%20I'd%20be%20very%20grateful.%26nbsp%3B%20Thanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1788886%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etraining%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1788989%22%20slang%3D%22en-US%22%3ERe%3A%20match%20and%20vlookup%20combo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1788989%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F835216%22%20target%3D%22_blank%22%3E%40Maddy1010%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20B2%3A%3C%2FP%3E%0A%3CP%3E%3DSUMIFS(Sheet1!%24C%242%3A%24C%241000%2C%20Sheet1!%24A%242%3A%24A%241000%2C%20B%241%2C%20Sheet1!%24B%242%3A%24B%241000%2C%20%24A2)%3C%2FP%3E%0A%3CP%3EFill%20to%20the%20right%20then%20down%20(or%20vice%20versa)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1789056%22%20slang%3D%22en-US%22%3ERe%3A%20match%20and%20vlookup%20combo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1789056%22%20slang%3D%22en-US%22%3Eit%20works%20a%20dream!!%20Thanks!!!%3C%2FLINGO-BODY%3E
Occasional Contributor

I'm trying to retrieve the amount in January if name 'John' is also matching.  =if(match(B1,A7:C11,vlookup(A2,B7:C11,2,false))

 

Example:

Maddy1010_0-1602863174492.png

I'm trying to retrieve data using match and vlookup but it's not working.  The destination file look like:

Maddy1010_1-1602863202493.png

Can anyone help?  I'd be very grateful.  Thanks.

2 Replies
Highlighted

@Maddy1010 

In B2:

=SUMIFS(Sheet1!$C$2:$C$1000, Sheet1!$A$2:$A$1000, B$1, Sheet1!$B$2:$B$1000, $A2)

Fill to the right then down (or vice versa)

Highlighted
it works a dream!! Thanks!!!