Excel - Vlookup - multiple conditions - textual data

rosieribbons

New Member
Joined
Aug 8, 2012
Messages
16
Hi Everybody.

Was wondering if anyone knew how to do the following (apologies if my excel jargon is off, I'm not what you'd call a pro!)

OK so my situation is this. I'm working with a database that holds information on individuals backgrounds. At the moment I'm looking at education history. I have pulled off a list which details what the database currently says each individual has specified as their degree, but they are all worded slightly differently, and I need to introduce some consistency into the wording to allow us to search and sort the data better.
So I've got sheet1, which has a list of all the unique ways a degree is listed within the database, and an adjacent column which specifies what I want to change it to.
And in sheet2 I have a list of serial numbers for the individual records, and adjacent to that, a column detailing the unique degree listings.

So I need to find a way to tell excel "when you find X in column 2 of sheet 2, change it to Y from sheet 1 column 2, but if you don't find X don't do anything. And if you find Z in column 2 of sheet 2, change it to F from sheet 1 column 2, but if you don't find Z don't do anything".....

BUT I have about 2,500 different conditions that I need to apply at the same time.

Does that make sense? and can anyone suggest a way to achieve this? a friend suggested Vlookup but I can't seem to find any evidence that Vlookup can apply such a large volume of conditions simultaneously. Also all the data I'm working with is textual rather than numerical and I can't find much on how to make that work. I have 20,000 records to amend, I really don't want to do them one at a time!

thanks,

Rosie
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hallo and welcome.
Could you post a sample of your data?
You can download and install two of the following programs:
HTLMaker
or
Excel Jeanie

or when using Internet Explorer just put borders around your data in Excel and copy those cells into your post.
 
Upvote 0
I wish I could.... however our data policy is very strict- I'm not allowed to post anything anywhere, even if it's meaningless to 'the outside world'!
 
Upvote 0
Serial
Current Course Name
New Course Name
112233English And CriminologyCriminology & English
454487English And CriminologyCriminology & English
659855English And CriminologyCriminology & English
323136English And CriminologyCriminology & English
495782English, CriminologyCriminology & English
363599English And CriminologyCriminology & English
121266English And CriminologyCriminology & English
558897Criminology and EnglishCriminology & English
223344Management, Business AdminBusiness Administration & Management
656688Management and business AdministrationBusiness Administration & Management
331332BA&MBusiness Administration & Management
569874BA Management and business adminBusiness Administration & Management
653121Management, Business AdminBusiness Administration & Management
554599Business Administration and managementBusiness Administration & Management

<colgroup><col><col><col></colgroup><tbody>
</tbody>


<tbody>
</tbody>

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
From your example, there is only one condition, if the course name can be found in the lookup table, then it be used. If I understood this correctly, something like the following should do the trick:
= IFERROR(VLOOKUP(CurrentCourseNameColumn, YourLookupTableRange, 2, FALSE), CurrentCourseNameColumn))

Do you have examples of what the other "2500 conditions" would look like?
 
Upvote 0
Computer Science & MusicComputer Science & Music
Computer Science & Music TechnologyComputer Science & Music Technology
Computer Science & NeuroscienceComputer Science & Neuroscience
Computer Science & PhilosophyComputer Science & Philosophy
Computer Science AND Physical Geography
Computer Science & Physical Geography
Computer Science & PhysicsComputer Science & Physics
Computer Science & PsychologyComputer Science & Psychology
Computer Science & SociologyComputer Science & Sociology
Computer Science & StatisticsComputer Science & Statistics
Computer Science and Visual Arts
Computer Science & Visual Arts
Computer Science with AstrophysicsComputer Science with Astrophysics
Computer Science with Forensic ScienceComputer Science with Forensic Science
Computer Science with MathematicsComputer Science with Mathematics
Computer Science with Physical GeographyComputer Science with Physical Geography
Computer Science with PhysicsComputer Science with Physics
Computer Science with PsychologyComputer Science with Psychology
Computer Science, and Business Administration & Music Technology
Computer Science, Business Administration & Music Technology
Computer Science, Electronics & PhysicsComputer Science, Electronics & Physics
Computer Science, Mathematics & Certificate in EducationComputer Science, Mathematics & Certificate in Education
Computer Studies, Physics & Certificate in Education
Computer Science, Physics & Certificate in Education
Computer Studies
Computer Studies

<colgroup><col span="2"></colgroup><tbody>
</tbody>



maybe i used the term 'condition' incorrectly... I meant 2,500 unique original course names with new names to change to.

the other thing I'm wondering is if I have course names like 'Computer Studies' and course names that incorporate that within a longer name, e.g. Computer Studies, Physics Certificate in Education will one overwrite the other? I need it to recognise the whole cell exactly.
 
Upvote 0
VLOOKUP should be able to handle a table of this size. Used with the parameter FALSE, this function will give you an exact match.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top