Formula to retrieve item cost based on two variables in database

dwsteyl

New Member
Joined
Sep 28, 2017
Messages
20
Hi guys

I'm sure this question must have been asked before, but I couldn't find a solution searching previous answers.

I have an Excel database like this:

InitialNameItem1Item2Item3Item4Item5
dwsDietrich1020304050
mzMary2025354555
imIngrid3036465666

<tbody>
</tbody>

I need to retrieve the value of an item based on input in two cells, like this:

mzItem3??

<tbody>
</tbody>

I need a formula in the third cell that can cross reference the initial ("mz" in this case) with the item code ("Item3") and pull through the correct value (in this case "35") to cell 3.

In my real scenario I have about 12 employees with approximately twenty items. I therfore assume that the formulas can be used to reference to a range (the table in this instance), but this is not a neccesity (only an option to make the formulas easier).

Thank you for your help!

Regards
Wessel
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Maybe something like this?
A​
B​
C​
D​
E​
F​
G​
1​
InitialNameItem1Item2Item3Item4Item5
2​
dwsDietrich1020304050
3​
mzMary2025354555
4​
imIngrid3036465666
5​
6​
7​
8​
mzItem335
C8=INDEX($C$2:$G$4,MATCH(A8,$A$2:$A$4,90),MATCH(B8,$C$1:$G$1,0))
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,086
Members
449,206
Latest member
ralemanygarcia

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top