Searching for an Offset Value based on Combo Box Selection

Cadillacmatt

New Member
Joined
Aug 23, 2012
Messages
4
Hello all,
I work for an ice cream manufacturing plant, and I am designing a "Report" worksheet within a "Daily Plant
Analysis" workbook. This workbook allows users to enter various information about their day-to-day runs.
During the course of a day, each ice cream production line we have (total of 6) might run 2 or 3 different
products on that line. Each "run" of products comes associated with a Yield Variance, which compares the total finished product output to the amount of starting mix.

Here's what I need the "Report" worksheet to accomplish. I will allow selection of an ice cream product
(governed by Data Validation list), and when that product is selected, I need another cell to display the
Yield Variance for that particular product, IF it has been run and entered on the "Yield" worksheet. The Yield
worksheet contains the data about Yield Variance for whatever product was run that day. It has every single
ice cream flavor & its corresponding unique item code on its own row, and listed in the first two columns. The
team leader would enter yield under whatever flavor is appropriate (if a particular flavor was not run, then
the Yield column would have no value).

This is where I face my challenge. When the user selects a flavor from the drop down box, I need Excel to
look-up the value selected in the "Report" worksheet, do a search for that same item name in the "Yield"
worksheet, and once it finds a matching value on that sheet, it will count a certain number of cells to the
right to arrive at the "Yield" column for that particular flavor. It would then display this value in the cell
next to the flavor selected in the "Report" sheet.

This seems like it could be accomplished with a combination of VLOOKUP and COUNT or OFFSET possibly, but I'm really at a loss here. If anyone can provide insight on this I will be eternally grateful. Thank you!!


Here are some visual aids to helpfully clarify what I'm talking about - In the first picture, you can see the "Report" sheet I've designed. The drop down box is selected for "SQ - Vanilla". The Yield cell will display the proper value for yield for whatever product has been entered in the "Yield" sheet.


attachment.php


The second attachment is the "Yield" sheet. As you can see, each flavor has its own row, and in this instance, only Square Vanilla was run that day. Excluding the fact that the names are different between the Data Validation list and the Yield List (I can fix this) the formula would need to find this value based on what the user has entered in the previous sheet. The value is highlighted with a red arrow.

attachment.php
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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