index match 2 values in row excel

hy , how to match 2 values in same row

     A     B      C  ...    K     L      M  
1 aaa  bbb    1        ccc bbb    6   in M1 formula needs to index column C and match K1 and L1
2 aaa  ccc    2                               with column A and B
3 bbb  ccc    3
4 ccc  aaa    4
5 bbb  aaa    5
6 ccc  bbb    6
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello thmh,

try this:


cheers, teylyn

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
In K1



MSmaxImplementation ConsultantCommented:

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
The Sumproduct will work, but only if the values in column C are numeric. The Index/Match will return any data type.

If there is more than one match, the Sumproduct will add all the numeric values, or zero for text. The Index/Match will return the value of the first match.

cheers, teylyn
thmhAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.