Solved

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

Posted on 2014-04-03
2
224 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
ID: 39975137
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
ID: 39975178
Excellent thank-you!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

828 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