If, Then, Lookup? Excel 2010

ddw23

New Member
Joined
Aug 23, 2010
Messages
1
Hello I have a large worksheet and I need to input category codes in one column based on certain description words in another column. Example: If column D contains "cleaning" then enter "12345" in column B of the same row.
I'll need to change this frequently for the different category codes that need to be input and descriptions I need to search. I would do this in Access but the Administrator and the Assitant Administrator do not like Access. And because this is a large worksheet (and project), they are assisting in putting the proper category code with its associated description. Is there an easy way to do this in Excel? Maybe I should just ask what would be the best way to do this in Excel? :confused:

Thank you all in advance for any help you can provide!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
make a lookup table

cleaning 12345
dusting 23456
polishing 44444

D1= cleaning in B1 =vlookup (D1, mytable,2)

lookup table must have column 1 in ascending order
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,598
Messages
5,832,646
Members
430,150
Latest member
amitk1

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
Top