+ Reply to Thread
Results 1 to 4 of 4

Replace question (Excel 2007)

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    Madrid
    MS-Off Ver
    Excel 2007
    Posts
    21

    Replace question (Excel 2007)

    Hi everyone,

    If somebody can help me, I have the following problem. In sheet 1, I have a list that looks like this (much larger in reality):

    Name Code

    Firm 1 a1
    Firm 2 a2
    Firm 3 a3

    In sheet 2 (of the same document), I have another list like this:

    Name Value

    Firm 1 175
    Firm 2 230
    Firm 3 101

    Basically, I want to replace sheet 2 names with the codes, so it looks like:

    a1 175
    a2 230
    a3 101

    Is that possible?

    Thank you in advance.
    Last edited by supernovartis; 09-05-2013 at 05:19 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: Replace question (Excel 2007)

    Insert a new column B in Sheet2 and put this formula in B1:

    =IFERROR(VLOOKUP(A1,Sheet1!A:B,2,0),A1)

    then copy down. Then highlight column B, click <copy> then right-click, choose Paste Special and click Values | OK and press the <Esc> key. Then you can delete the original column A.

    Hope this helps.

    Pete

    Not sure why your post count is shown as zero.

  3. #3
    Registered User
    Join Date
    09-05-2013
    Location
    Madrid
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Replace question (Excel 2007)

    Thanks a lot, worked like a charm!!

    ps. I just registered in the forum, that's why zero posts.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: Replace question (Excel 2007)

    Quote Originally Posted by supernovartis View Post
    ps. I just registered in the forum, that's why zero posts.
    Yes, but it should have shown as 1 on your first post.

    Anyway, glad to be of help - please mark the Thread as Solved if you think it is.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 02-06-2012, 12:16 PM
  2. Excel 2007 Macro - Search, then Replace
    By Azeon in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-05-2011, 04:55 AM
  3. Excel 2007 : Find and Replace question in Excell 2007
    By raedaljarrah in forum Excel General
    Replies: 1
    Last Post: 03-11-2011, 12:12 PM
  4. [SOLVED] Access 2007 or Excel 2007 Question
    By russkris in forum Access Tables & Databases
    Replies: 2
    Last Post: 10-24-2009, 03:57 AM
  5. [SOLVED] SEARCH AND REPLACE (in Excel 2007, beta)
    By Rebecca in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2006, 04:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1