+ Reply to Thread
Results 1 to 3 of 3

search for value in one spreadsheet from a table in another spreadsheet and replace

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    1

    search for value in one spreadsheet from a table in another spreadsheet and replace

    Hi All,

    I am looking for an Excel macro to search for value in one spreadsheet column from a table in another spreadsheet and if found, replace it with the corresponding value.

    Spreadsheet 1
    column 1 Column2
    1 a
    2 b

    Spreadsheet 2
    1
    2

    Spreadsheet2 after running macro
    a
    b

    Thanks,

    Mark

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: search for value in one spreadsheet from a table in another spreadsheet and replace

    put data in columns A B starting from row 2
    Please Login or Register  to view this content.
    Last edited by patel45; 10-03-2012 at 01:06 PM.
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: search for value in one spreadsheet from a table in another spreadsheet and replace

    Hi, Mark,

    you could use WorksheetFunction.VLookUp for doing so (with that small example given IŽd rely on a Formula instead of VBA).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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