Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Replace data in a column

Okay, I have a column that has text in it. I want to change all these to the
Identifying number that is found in a different table. So how do I do this?
Example:
Current table has:
A
1 First name
2 New first name
3 Another first name

Need to change the A column in first table to the correspoding column in
this table:
A B
1 12 First name
2 15 New first name
3 22 Another first name

So after the switch either I need a new column in the current table so it
look like the second column (there might be more then one match in the
current table to the numbers in the 2nd table) Or just totally replace
anything that matches Column B in to Column A. Does that make sense?

So after combining current table should be:
A
1 12
2 15
3 22

Thanks for any help!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Replace data in a column

Suppose you have the first table in Sheet1 ColA and your data table with 2
columns is in Sheet2.

In ColB of sheet1 enter the below formula and copy down..This will return
the corresponding number from sheet2. Once done you can select Sheet1 ColB
copyPaste specialValuesOK and then remove ColA

=INDEX(Sheet2!A:A,MATCH(A1,Sheet2!B:B,0))

If this post helps click Yes
---------------
Jacob Skaria


"Amelia" wrote:

Okay, I have a column that has text in it. I want to change all these to the
Identifying number that is found in a different table. So how do I do this?
Example:
Current table has:
A
1 First name
2 New first name
3 Another first name

Need to change the A column in first table to the correspoding column in
this table:
A B
1 12 First name
2 15 New first name
3 22 Another first name

So after the switch either I need a new column in the current table so it
look like the second column (there might be more then one match in the
current table to the numbers in the 2nd table) Or just totally replace
anything that matches Column B in to Column A. Does that make sense?

So after combining current table should be:
A
1 12
2 15
3 22

Thanks for any help!

Reply
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 all non blanks in a column with column header hnyb1 Excel Discussion (Misc queries) 3 April 18th 06 05:39 PM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM
Replace data in a column coasterdude Excel Discussion (Misc queries) 1 December 7th 05 04:38 PM
How to find/replace data in column Rock Excel Discussion (Misc queries) 3 November 16th 05 02:28 AM
How to find/replace data in column Rock New Users to Excel 4 November 15th 05 10:52 PM


All times are GMT +1. The time now is 12:17 AM.

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"