Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Search and replace function

I spent hours trying to get vlookup and replace functions (and other
functions) to do this;
Col A has 2 letter country codes in any order..
Col A
FR
US
GE
I need to do a "simple" lookup from Col M below and replace in Column A
above with the value in Col N (in other words the full country name)

Col M | Col N
FR France
US United States
GE Germany

Thanks
Richard
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Search and replace function

Put this formula in B1:

=VLOOKUP(A1,M$1:N$3,2,0)

and copy down. Then highlight all the cells in column B, click on
<copy then Edit | Paste Special | Values (check) | OK then <Esc. Now
you can Cut/Paste from column B to column A to overwrite the original
values.

Hope this helps.

Pete

On Mar 29, 5:36*am, RichardR
wrote:
I spent hours trying to get vlookup and replace functions (and other
functions) to do this;
Col A has 2 letter country codes in any order..
Col A
FR
US
GE
I need to do a "simple" lookup from Col M below and replace in Column A
above with the value in Col N (in other words the full country name)

Col M *| *Col N
FR * * * * France
US * * * * United States
GE * * * * Germany

Thanks
Richard


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
Search and Replace LymaBeane Excel Worksheet Functions 2 September 13th 06 10:30 PM
Search & replace function Angie B Excel Discussion (Misc queries) 1 August 28th 06 04:22 PM
Search and Replace Rebecca New Users to Excel 3 February 27th 05 09:29 PM
search & replace Al Excel Worksheet Functions 0 November 9th 04 03:43 PM
search & replace joe_may Excel Worksheet Functions 1 November 8th 04 11:16 PM


All times are GMT +1. The time now is 07:04 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"