LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Replace all values in a column with values using a mapping from another worksheet

Hello,

I have a column which has about 500 unique entries in it. The entries
are business sector types, and I need to be more general so need to
have about 10 business types instead of the 500 odd.

In a second worksheet I have copied the column containing business
types, I have then run the remove duplicates on it - which has got the
size down to the 500 unique values.

Along side each of these values in the second column I have written the
value I would like to replace the initial value with in the original
worksheet.

How do i tell excel to replace all values in worksheet-1, column E,
that match the value in worksheet-2 ColumnA, with the value in
worksheet-2 Column B?

e.g.

worksheet-1
Column E
a
b
a
c
d
a
e
f
h
g
h
h
i
j
.....


worksheet-2
Column A Column B
a a
b a
c a
d a
e b
f b
g b
h b
i c
j c
...

The result im looking for when the macro is run, is an updated column
E, in worksheet-1 that would like this.

worksheet-1
Column E
a
a
a
a
a
a
b
b
b
b
b
b
c
c


Thankyou,
Gary

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace Null Values in a Column Steve C Excel Discussion (Misc queries) 4 May 15th 08 08:52 AM
mapping values of one array into another carl43m Excel Worksheet Functions 0 January 9th 07 07:51 PM
Mapping values from an index!!?? HELP! BCBS_exceller Excel Worksheet Functions 3 December 8th 06 11:43 PM
Dynamic Find and Replace String Within Functions Based on Column Values [email protected] Excel Programming 0 October 13th 05 06:16 PM
How do I find and replace "values" (like #N/A) in a worksheet? hdc Excel Discussion (Misc queries) 3 June 12th 05 12:14 AM


All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"