Help with Index Match

xdavidgarza

New Member
Joined
Sep 29, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone,

I need help with my recipe template. I have an inventory sheet linked to my recipe template using index match. For example, if i input kosher salt under the ingredients in the Recipe section it will automatically give me the quantity of the case by weight and the price in the As Purchased section based on the information in the inventory sheet. But i would like to be able to get not just the weight under the quantity but by each box in the case. Right now i can get either the 36 or just the 12. Id like to be able to type in box, lb, oz, etc and pull the right value.
Any ideas?

Recipe AS PURCHASED
INGREDIENT QUANTITY UOM QUANTITY UOM PRICE
kosher salt 1 BOX 36 lb 36.25
Kosher Salt 1 LB 12 box 36.25

INVENTORY
IngredientsQuantityUnitQuantityUnitPrice
KOSHER SALT
36​
lbm12BOX$ 36.25
BALSAMIC GLAZE
108.8​
ozm4EA$ 50.91
BBQ SAUCE
640​
ozm4EA$ 50.35
BUFFALO SAUCE
4​
ga4EA$ 81.53
DEL PASADO CHEESE
20​
lbm4EA$ 55.67
CHILI SAUCE
43.8​
lbm6EA$ 53.24
SAMBAL
96​
ozm12EA$ 50.84
SRIRACHA
120​
ozm6EA$ 24.06
Lemon Grass1lbm
1​
CASE$14.04
Tomato40EA
40​
EA$32.44
Roma25lbm
1​
CASE$31.68
Baby tomato120OZ
12​
EA$29.40
Diced Tomato5lbm
1​
TRAY$15.83
Cucumber12CT
12​
EA$16.64
Arugula4lbm
1​
CASE$14.88

Recipe Template
RecipeAs Purchased
IngredientQuantityUomQuantityUOMPrice
Kosher Salt
1​
lb
36​
lbm
36.25​
kosher salt
1​
Box12BOX
36.25​
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Have no idea why you would want to to this as your recipe would cost based on qty or weight of material used , in the above you have 36 Ibs = 12boxes = 36.25.
In the recipe you have 1box=12 box=36.25.
In the current environment of shrinkflation it is best to manage by using Purchased UOM weight at least you should spot when a supplier tries to short change you on the weight. A box is always a box but its the weight of the box thats important
 
Upvote 0
Because a box goes into a a single recipe. And other recipes have it by weight. If my boss makes a recipe with 1 box of kosher and 2 cups of black pepper to make recipe I don't want to have to go back and look at what is the actual weight of the box. I already did the work and separated everything by weight and by eaches.
The inventory sheets shows the case by the eaches(12) and by weight (36) so that I can index match the name kosher to the quantity depending on wether I use weight or eaches in a recipe. Is there anyway I can match, the cell where I have kosher and where I have either box or lb, and have multiple arrays in the index match to pull from either the weight of the item or by the each.
If someone can just help me do this. Obviously I know that doing it by the weight is ideal. But sometimes my supplier has items not by weight but by eaches and would make my life easier. Also when other make a recipe it can be by the each and not by weight. I've done my research for weeks and cannot seem to figure out a solution on how to do this.

Please if anyone can please help me figure this out
 
Upvote 0
Since you have 365 version, try XLOOKUP rather than index match. It's much simpler to use.
 
Upvote 0
I've tried that but I don't know what I'm doing wrong. It gives me a value error or name error. Anyway someone can give me an example based on the example that I've provided. I'm just not sure what I'm doing wrong.
Like I mentioned. I'd like to type in the ingredient such as kosher salt, the quantity, the UOM such as by box or by actual weight. But I'd like to somehow match the kosher salts info from the inventory list but somehow make it match the UOM used in the recipe.
 
Upvote 0
Xlookup will work like this:

Book1.xlsx
ABCDEF
1NVENTORY
2IngredientsQuantityUnitQuantityUnitPrice
3KOSHER SALT36lbm12BOX$36.25
4BALSAMIC GLAZE108.8ozm4EA$50.91
5BBQ SAUCE640ozm4EA$50.35
6BUFFALO SAUCE4ga4EA$81.53
7DEL PASADO CHEESE20lbm4EA$55.67
8CHILI SAUCE43.8lbm6EA$53.24
9SAMBAL96ozm12EA$50.84
10SRIRACHA120ozm6EA$24.06
11Lemon Grass1lbm1CASE$14.04
12Tomato40EA40EA$32.44
13Roma25lbm1CASE$31.68
14Baby tomato120OZ12EA$29.40
15Diced Tomato5lbm1TRAY$15.83
16Cucumber12CT12EA$16.64
17Arugula4lbm1CASE$14.88
18
19Recipe Template
20RecipeAs Purchased
21IngredientQuantityUomQuantityUOMPrice
22Kosher Salt1lbm36BOX36.25
Sheet1
Cell Formulas
RangeFormula
C22C22=XLOOKUP(A22,A3:A17,C3:C17)
D22D22=XLOOKUP(A22,A3:A17,B3:B17)
E22E22=XLOOKUP(A22,A3:A17,E3:E17)
F22F22=XLOOKUP(A22,A3:A17,F3:F17)
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,094
Latest member
mystic19

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