excel sumproduct or index match

please help me get the result "e" in the attached example, either by sumproduct or index match.

Thanks
spHelp.xlsx
newparadigmzAsked:
Who is Participating?
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.

mvidasCommented:
Hi NPZ,

Using INDEX and MATCH, with an array formula in the MATCH portion, can return what you need. Paste the following into H6, and press control-shift-enter.
=INDEX($A$2:$A$8,MATCH(F6,IF($C$2:$C$8=G6,$B$2:$B$8),0))

Open in new window

Matt
0
byundtMechanical EngineerCommented:
You could also use LOOKUP in a formula that does not need to be array-entered:
=LOOKUP(2,1/((B2:B8=F6)*(C2:C8=G6)),A2:A8)
0
NorieAnalyst Assistant Commented:
This appears to work but I'm sure it's not the best approach.

=INDEX(A2:A8,SUMPRODUCT(ROW(A2:A8)*(B2:B8=F6)*(C2:C8=G6))-1)
0

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
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

mvidasCommented:
Brad,

Very impressive use of LOOKUP, though that comes as no surprise to me. Took me 10 minutes to wrap my head around your use of the reciprocal inverse of the vector. I had no idea it could do that. Kudos!

Matt
0
byundtMechanical EngineerCommented:
Matt,
While you were away, we were regularly schooled by barryhoudini. That's one of his tricks, and pretty cute at that.

Brad
0
newparadigmzAuthor Commented:
This was, in fact, exactly what I was looking for.

While the others worked, this one was 1, not an array formula, and 2, intuitive to understand at first glance.

Thanks All!
0
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
Microsoft Excel

From novice to tech pro — start learning today.