Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro 6 49
Troubleshooting a Worksheet Graphic 8 25
Office 2016 Excel Issue 4 26
Automating Excel Weekly Report 13 53
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
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…
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 longer labels with horizontal bar charts instead of the vertical column chart.

911 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

23 Experts available now in Live!

Get 1:1 Help Now