"Vlookup unrepeated values"

Marwan69

Board Regular
Joined
Mar 14, 2018
Messages
80
Hello everyone,

I have a list of items and some of these items are repeated in every other 10 or so rows: For example:

size_sku​
product​
size​
ingredient_sku​
ingredient_name​
43​
Cappuccino​
Small​
sku_111​
Coffee Double/Single Shot
43​
Cappuccino​
Small​
sku_115​
Kraft Ripple Paper Cup 8oz​
43​
Cappuccino​
Small​
sku_116​
Kraft Ripple Paper Cup 12oz​
43​
Cappuccino​
Small​
sku_117​
Black Plastic Lid 8oz​
43​
Cappuccino​
Small​
sku_118​
Black Plastic Lid 12oz​
43​
Cappuccino​
Small​
sku_124​
Brown Paper Napkin​
43​
Cappuccino​
Small​
sku_126​
2-Cup tray​
43​
Cappuccino​
Small​
sku_129​
Brown Wrapped Wooden Stirrer​
43​
Cappuccino​
Small​
sku_156​
Full Fat Milk Nadic​
43​
Cappuccino​
Small​
sku_172​
Sugar Satchet​
43​
Cappuccino​
Small​
sku_201​
Cocoa Alalali​
Total​
44​
Cappuccino​
Medium​
sku_111​
Coffee Double/Single Shot​
44​
Cappuccino​
Medium​
sku_115​
Kraft Ripple Paper Cup 8oz​
44​
Cappuccino​
Medium​
sku_116​
Kraft Ripple Paper Cup 12oz​
44​
Cappuccino​
Medium​
sku_117​
Black Plastic Lid 8oz​
44​
Cappuccino​
Medium​
sku_118​
Black Plastic Lid 12oz​
44​
Cappuccino​
Medium​
sku_124​
Brown Paper Napkin​
44​
Cappuccino​
Medium​
sku_126​
2-Cup tray​
44​
Cappuccino​
Medium​
sku_129​
Brown Wrapped Wooden Stirrer​
44​
Cappuccino​
Medium​
sku_156​
Full Fat Milk Nadic​
44​
Cappuccino​
Medium​
sku_172​
Sugar Satchet​
44​
Cappuccino​
Medium​
sku_201​
Cocoa Alalali​
Total​
45​
Macchiato​
Small​
sku_111​
Coffee Double/Single Shot​
45​
Macchiato​
Small​
sku_115​
Kraft Ripple Paper Cup 8oz​
45​
Macchiato​
Small​
sku_116​
Kraft Ripple Paper Cup 12oz​
45​
Macchiato​
Small​
sku_117​
Black Plastic Lid 8oz​
45​
Macchiato​
Small​
sku_118​
Black Plastic Lid 12oz​
45​
Macchiato​
Small​
sku_124​
Brown Paper Napkin​
45​
Macchiato​
Small​
sku_126​
2-Cup tray​
45​
Macchiato​
Small​
sku_129​
Brown Wrapped Wooden Stirrer​
45​
Macchiato​
Small​
sku_156​
Full Fat Milk Nadic​
45​
Macchiato​
Small​
sku_172​
Sugar Satchet​
Total​
46​
Macchiato​
Medium​
sku_111​
Coffee Double/Single Shot​
46​
Macchiato​
Medium​
sku_115​
Kraft Ripple Paper Cup 8oz​
46​
Macchiato​
Medium​
sku_116​
Kraft Ripple Paper Cup 12oz​
46​
Macchiato​
Medium​
sku_117​
Black Plastic Lid 8oz​
46​
Macchiato​
Medium​
sku_118​
Black Plastic Lid 12oz​
46​
Macchiato​
Medium​
sku_124​
Brown Paper Napkin​
46​
Macchiato​
Medium​
sku_126​
2-Cup tray​
46​
Macchiato​
Medium​
sku_129​
Brown Wrapped Wooden Stirrer​
46​
Macchiato​
Medium​
sku_156​
Full Fat Milk Nadic​
46​
Macchiato​
Medium​
sku_172​
Sugar Satchet​
Total​
47​
Espresso/Double​
Small​
sku_110​
Brown Kraft Paper 4oz​
47​
Espresso/Double​
Small​
sku_111​
Coffee Double/Single Shot​
47​
Espresso/Double​
Small​
sku_124​
Brown Paper Napkin​
Total​

So, I want "Vlookup" function to pick up only one of ie: "Coffee Double/Single Shot" and not all the "Coffee Double/Single Shot". It doesn't matter which one to pick but most importantly
one of this item only "Coffee Double/Single Shot". How to do that?

Many thanks,
Marwan
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
VLOOKUP will only pick up the first one it finds. So, that sounds like it might already meet your requirements.
If not, then I am not clear on what you are looking for, so please explain in more detail and show us what your expected output is.
 
Upvote 0
Thanks Joe4. But it returns error. Am expecting a return of specific item whether with vlookup or some other function sir.
 
Upvote 0
Thanks Joe4. But it returns error
Then there is probably an error in the way you wrote it.
Can you post your formula?
Also, what is it exactly that you want returned? Do you want one of the other columns (like sku number) returned?
 
Upvote 0
I actually want the cost of the item. I appologize I didn’t put the cost. But any how i was thinking if i could get that item alone the rest will follow suit.
 
Upvote 0
Whether you can use VLOOKUP or have to use something else (like INDEX/MATCH) depends very much on the structure of your data.
Most importantly, we need to know which column the ingredient_name is in, and which column your cost is in.
If the cost column is to the left of the ingredient_name column, you cannot use VLOOKUP.
 
Upvote 0
Products Recipe-Final.xlsx
ABCDEFGH
6size_skuproductsizeingredient_skuingredient_nameingredient_quantityingredient_unitingredient_total_cost
743CappuccinoSmallsku_111Coffee Double/Single Shot18g1.346
843CappuccinoSmallsku_115Kraft Ripple Paper Cup 8oz1Pcs0.265
943CappuccinoSmallsku_116Kraft Ripple Paper Cup 12oz0Pcs0
1043CappuccinoSmallsku_117Black Plastic Lid 8oz1Pcs0.081
1143CappuccinoSmallsku_118Black Plastic Lid 12oz0Pcs0
1243CappuccinoSmallsku_124Brown Paper Napkin2Pcs0.069
1343CappuccinoSmallsku_1262-Cup tray1Pcs0.216
1443CappuccinoSmallsku_129Brown Wrapped Wooden Stirrer1Pcs0.03
1543CappuccinoSmallsku_156Full Fat Milk Nadic250ml0.838
1643CappuccinoSmallsku_172Sugar Satchet2Pcs0.052
1743CappuccinoSmallsku_201Cocoa Alalali1mg0
182.896
1944CappuccinoMediumsku_111Coffee Double/Single Shot36g2.693
2044CappuccinoMediumsku_115Kraft Ripple Paper Cup 8oz0Pcs0
2144CappuccinoMediumsku_116Kraft Ripple Paper Cup 12oz1Pcs0.322
2244CappuccinoMediumsku_117Black Plastic Lid 8oz0Pcs0
2344CappuccinoMediumsku_118Black Plastic Lid 12oz1Pcs0.086
2444CappuccinoMediumsku_124Brown Paper Napkin2Pcs0.069
2544CappuccinoMediumsku_1262-Cup tray1Pcs0.216
2644CappuccinoMediumsku_129Brown Wrapped Wooden Stirrer1Pcs0.03
2744CappuccinoMediumsku_156Full Fat Milk Nadic360ml1.206
2844CappuccinoMediumsku_172Sugar Satchet2Pcs0.052
2944CappuccinoMediumsku_201Cocoa Alalali1mg0
304.674
3145MacchiatoSmallsku_111Coffee Double/Single Shot18g1.346
3245MacchiatoSmallsku_115Kraft Ripple Paper Cup 8oz1Pcs0.265
3345MacchiatoSmallsku_116Kraft Ripple Paper Cup 12oz0Pcs0
3445MacchiatoSmallsku_117Black Plastic Lid 8oz1Pcs0.081
3545MacchiatoSmallsku_118Black Plastic Lid 12oz0Pcs0
3645MacchiatoSmallsku_124Brown Paper Napkin2Pcs0.069
3745MacchiatoSmallsku_1262-Cup tray1Pcs0.216
3845MacchiatoSmallsku_129Brown Wrapped Wooden Stirrer1Pcs0.03
3945MacchiatoSmallsku_156Full Fat Milk Nadic60ml0.201
4045MacchiatoSmallsku_172Sugar Satchet2Pcs0.052
412.26
4246MacchiatoMediumsku_111Coffee Double/Single Shot36g2.693
4346MacchiatoMediumsku_115Kraft Ripple Paper Cup 8oz0Pcs0
4446MacchiatoMediumsku_116Kraft Ripple Paper Cup 12oz1Pcs0.322
4546MacchiatoMediumsku_117Black Plastic Lid 8oz0Pcs0
4646MacchiatoMediumsku_118Black Plastic Lid 12oz1Pcs0.086
4746MacchiatoMediumsku_124Brown Paper Napkin2Pcs0.069
4846MacchiatoMediumsku_1262-Cup tray1Pcs0.216
4946MacchiatoMediumsku_129Brown Wrapped Wooden Stirrer1Pcs0.03
5046MacchiatoMediumsku_156Full Fat Milk Nadic60ml0.201
5146MacchiatoMediumsku_172Sugar Satchet2Pcs0.052
523.669
5347Espresso/DoubleSmallsku_110Brown Kraft Paper 4oz1Pcs0.083
5447Espresso/DoubleSmallsku_111Coffee Double/Single Shot18g1.346
5547Espresso/DoubleSmallsku_124Brown Paper Napkin2Pcs0.069
561.498
5748Espresso/DoubleMediumsku_110Brown Kraft Paper 4oz1Pcs0.083
5848Espresso/DoubleMediumsku_111Coffee Double/Single Shot36g2.693
5948Espresso/DoubleMediumsku_124Brown Paper Napkin2Pcs0.069
602.845
Products Recipes
 
Upvote 0
OK, so it looks like its column E and H.

So it could be something like:
=VLOOKUP("Coffee Double/Single Shot",E7:H59,4,0)

If the value you want to look up is in a certain cell, just replace "Coffee Double/Single Shot" with that cell address.
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,258
Members
449,149
Latest member
mwdbActuary

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