Solved

How do I assign categories in a category to muliple duplicates? (vlookup possibly...?)

Posted on 2014-04-03
2
222 Views
Last Modified: 2014-04-03
The  spreadsheet snippet view below shows the total sales of products for 2013
Column G displays the product codes that have been sold (there are duplicates throughout as the data is compiled of the individual orders)
I would like to segment the products into their relevant categories in column ‘I’.
Question:
How do I assign a category to every product in column ‘I’?

I think I would somehow need to list all of the product codes (minus duplicates) then assign the categories to each individual product in column ‘I’

I would then need the duplicates in column ‘G’ to be assigned to their appropriate category in column ‘I’

e.g. all of the ‘ER32SET’s in column ‘G’ should display ‘cutting tools’ in column ‘I’?

I need to do this for every product in column ‘G’

Your help would be greatly appreciated. I am an excel novice!

Stock Code      Short Description      Product category
BT40ER25      BT40 ER Chuck Range      
ER25SET      ER Collets (class2)      
ER25SET      ER Collets (class2)      
ER32SET      ER Collets (Class2)      
ER32SET      ER Collets (Class2)      
ER16SET      ER Collets (Class2)      
ER25SET      ER Collets (class2)      
ER32SET      ER Collets (Class2)      
ER3210      ER Collects(Classs 2      
ER3212      ER Collets (Class2)      
ER3216      ER Collets (Class2)      
ER326      ER Collets (Class 2)      
ER32SET      ER Collets (Class2)      
ER3211      Gurkan ER32 11mm Col      
ER3213      Gurkan ER32 13mm Col      
ER3214      Gurkan ER32 14mm Col      
ER324      Gurkan ER32 4mm Coll      
ER325      Gurkan ER32 5mm Coll      
ER327      Gurkan ER32 7mm Coll      
ER328      Gurkan ER32 8mm Coll      
ER329      Gurkan ER32 9mm Coll      
BT40ER32      BT40 ER Chuck Range      
BT40ER32      BT40 ER Chuck Range      
ER166      ER Collets (Class2)      
ER112      ER 11 Collet 2mm      
01-108-10NB      Mixed Quality Wipers      
03-315-10NB      White Sheeting      
03-316-5      White Sheeting      
0901      Aerosol White Linema      
0902      Aerosol Red Linemark      
0904      Aerosol Blue Linemar      
5084918      HM BRUSH CLEANER & T      
5084918      HM BRUSH CLEANER & T      
5084845      Hammerite 2.5Ltr Smo      
5084845      Hammerite 2.5Ltr Smo      
5084918      HM BRUSH CLEANER & T      
5084921      Hammerite 2.5Ltr Thi      
5084918      HM BRUSH CLEANER & T      
5084918      HM BRUSH CLEANER & T
0
Comment
Question by:rob700
2 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
Comment Utility
Do you have a lookup table somewhere where you could lookup the Stock Code and get the relevenant category?

If so, then you could use VLOOKUP

e.g.

=VLOOKUP(A2,$X$2:$Y$10,2,0)

copied down where A2 contains first Code to check in table placed in X2:Y10 of the sheet.

Adjust as necessary.
0
 

Author Closing Comment

by:rob700
Comment Utility
Excellent thank-you!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now