Vlookup or not

Don Fardie

New Member
Joined
Aug 6, 2014
Messages
23
Trying to create a spreadsheet where the user can pick a Machine from one cell, then pick the Material to run in the machine from another cell and based on those 2 inputs the cost per Kg is shown in another cell. The idea is to use drop down menus for the selections. Is that possible to use Data Validation Lists in a VLOOKUP formula or should I be doing it another way. Not trying to over think this, but kind of a newbie to VLOOKUP formulas!!
Thanks in advance.........Don
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
You could do something like this:

ABCDEFGHIJ
1MachineMaterialCostMachineMaterialMachineMaterialCost
2TwoPlastic7OneTinOneTin1
3TwoPaperOnePaper2
4ThreePlasticOnePlastic3
5GlassOneGlass4
6TwoTin5
7TwoPaper6
8TwoPlastic7
9TwoGlass8
10ThreeTin9
11ThreePaper10
12ThreePlastic11
13ThreeGlass12
14

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet7

Array Formulas
CellFormula
C2{=INDEX(J2:J13,MATCH(A2&"|"&B2,H2:H13&"|"&I2:I13,0))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



You have a list of your machines in E, your materials in F, and then a combined list with costs in H:J. Then in A2 you can put a drop-down pointing to E2:E4, in B2 you have a drop-down pointing to F2:F5, then you can put the formula in C2 to look up the cost.

This should give you some ideas.
 
Upvote 0
You could do something like this:

A
B
C
D
E
F
G
H
I
J
1
Machine
Material
Cost
Machine
Material
Machine
Material
Cost
2
Two
Plastic
7
One
Tin
One
Tin
1
3
Two
Paper
One
Paper
2
4
Three
Plastic
One
Plastic
3
5
Glass
One
Glass
4
6
Two
Tin
5
7
Two
Paper
6
8
Two
Plastic
7
9
Two
Glass
8
10
Three
Tin
9
11
Three
Paper
10
12
Three
Plastic
11
13
Three
Glass
12
14

<tbody>
</tbody>
Sheet7


Array Formulas
Cell
Formula
C2
{=INDEX(J2:J13,MATCH(A2&"|"&B2,H2:H13&"|"&I2:I13,0))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



You have a list of your machines in E, your materials in F, and then a combined list with costs in H:J. Then in A2 you can put a drop-down pointing to E2:E4, in B2 you have a drop-down pointing to F2:F5, then you can put the formula in C2 to look up the cost.

This should give you some ideas.

Thanks Eric....this is what I'm looking for. I'll give it a try!!
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,852
Members
449,471
Latest member
lachbee

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