Solved

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

Posted on 2014-04-03
2
225 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
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…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

751 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