Solved

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

Posted on 2014-04-03
2
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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 demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

623 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