Comparing a value against a table for match

%3CLINGO-SUB%20id%3D%22lingo-sub-1508276%22%20slang%3D%22en-US%22%3EComparing%20a%20value%20against%20a%20table%20for%20match%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508276%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I'm%20looking%20for%202%20formulas%20to%20compare%20a%20value%20against%20a%20table%20in%20excel%20to%20return%201)%20a%20match%20and%202)%20another%20value.%3C%2FP%3E%0A%3CP%3EBelow%20is%20an%20example%20of%20the%20excel%20table.%3C%2FP%3E%0A%3CP%3EWhat%20should%20be%20the%20input%20formulas%20in%20the%20yellow%20highlighted%20field%20for%20expected%20result.%3C%2FP%3E%0A%3CP%3EThanks.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Gab2002_1-1594199088054.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F204057iAEB82DF3DD7B70D9%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Gab2002_1-1594199088054.png%22%20alt%3D%22Gab2002_1-1594199088054.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1508276%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-1508382%22%20slang%3D%22en-US%22%3ERe%3A%20Comparing%20a%20value%20against%20a%20table%20for%20match%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508382%22%20slang%3D%22en-US%22%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3D%20XLOOKUP(%201%2C%0A%20%20MMULT(%20SIGN(identityTable%3DidentityNo)%2C%20%7B1%3B0%3B1%3B0%3B1%3B0%7D%20)%2C%0A%20%20lastName%2C%0A%20%20%22False%22%20)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CEM%3EIn%20older%20versions%20of%20Excel%20LOOKUP%20could%20be%20used%20in%20place%20of%20XLOOKUP%3C%2FEM%3E.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

Hi, I'm looking for 2 formulas to compare a value against a table in excel to return 1) a match and 2) another value.

Below is an example of the excel table.

What should be the input formulas in the yellow highlighted field for expected result.

Thanks.

Gab2002_1-1594199088054.png

 

 

1 Reply
= XLOOKUP( 1,
  MMULT( SIGN(identityTable=identityNo), {1;0;1;0;1;0} ),
  lastName,
  "False" )

In older versions of Excel LOOKUP could be used in place of XLOOKUP