# I need help!

#### kendry

##### New Member
Hello everyone,

I am working on a dashboard to automatically calculate line efficiency based on product type and production line.

I have a total of 12 production lines and over 100 different product types. Each line has a set amount of product coming out (yield) depending on the product type. Example: line 1 yields 1000 units per hour of product X.

I have set up all the product types in a single column and all the production lines in multiple adjacent columns so that the product type and the production line intersect one another, and reflects the yield value on that intersection (a given cell).

My question is: how can I set a random cell (A1 for example) to display the yield value from an intersection? Provided that two other cell (A2 & A3 for example) are showing the production line and the product type (example: A2 = Line 1 & A3 = Product X... A1 then MUST equal 1000).

I thought VLOOKUP would do the trick, but I'm seriously stuck!

View:

### Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

##### Well-known Member
Hi Kendry,

I'm not sure I'm following you correctly but maybe this example will point you in the right direction.

Kendry.xlsx
ABCDEFGHIJK
1LineProductYieldLine 1Line 2Line 3Line 4Line 5Line 6Line 7Line 8
21Wagon Wheel12121706021160378440165
32Snickers708870162217328162420220
43Mars Bar1149270114105328126400440
54Milky Way22411619518022420081320297
65Skittles3449212024018234416230308
76Banjo Bar90522101567720090280176
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=INDEX(\$D\$2:\$K\$7,ROW()-ROW(\$C\$1),MATCH("Line "&A2,\$D\$1:\$K\$1,0))

#### kendry

##### New Member
Hi Kendry,

I'm not sure I'm following you correctly but maybe this example will point you in the right direction.

Kendry.xlsx
ABCDEFGHIJK
1LineProductYieldLine 1Line 2Line 3Line 4Line 5Line 6Line 7Line 8
21Wagon Wheel12121706021160378440165
32Snickers708870162217328162420220
43Mars Bar1149270114105328126400440
54Milky Way22411619518022420081320297
65Skittles3449212024018234416230308
76Banjo Bar90522101567720090280176
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=INDEX(\$D\$2:\$K\$7,ROW()-ROW(\$C\$1),MATCH("Line "&A2,\$D\$1:\$K\$1,0))
Thank you very much @Toadstool! It did point me in right direction, I solved it.

Replies
9
Views
197
Replies
7
Views
69
Replies
9
Views
176
Replies
0
Views
510
Replies
8
Views
128

1,127,316
Messages
5,623,961
Members
416,002
Latest member
Neshx

### 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.

### Which adblocker are you using?

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

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