+ Reply to Thread
Results 1 to 2 of 2

Find & Replace 3,000+ Values

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    New York, NY
    MS-Off Ver
    2010
    Posts
    1

    Find & Replace 3,000+ Values

    Hello,

    I'm not sure if this will require a macro, or if there is a formula that could resolve this, but I'm looking to find and replace a large number of values.

    In Column A of Worksheet 1, I have a series of IDs that look something like this....

    Current IDs (Column A)
    17775970,6213054,6211374
    3743032,3743272
    3804472
    4120715 and (8875570,420386,420026,438866,427106)
    (4121915,4121795) and (9143290,6254694)

    Then, in Worksheet 2, I have a mapping file that links all "Old IDs" to "New IDs," like this....

    Old ID (Column A)___New ID (Column B)
    17775970___________283338
    9621970____________283302
    10951690___________283412
    9231490____________102419
    17564290___________283455
    9288850____________102950
    16696810___________283340
    9288730____________102949

    Some of the rows in Column A of Worksheet 1 ("Current Keys") contain values that need to be replaced. Some of them don't. I'd like to do two things:

    1) Identify which rows under "Current IDs" contain old IDs.
    2) In Column B of Worksheet 1, I'd like to have an updated version of the rows, where all old IDs have been replaced with new IDs, but all other values remain the same.

    If there were only 1 ID per row in Worksheet 1, I could do a simple VLOOKUP. But the problem is that there are multiple IDs per row, and they're mixed up among other values (parentheses, commas, etc.).

    Please let me know if you have any ideas on the best way to solve this.

    Thanks,
    Scott

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Find & Replace 3,000+ Values

    The following code will parse the numbers out of column A and put them in column B. You could then do Vlookups on column B to get your new IDs.
    Let me know how it works.

    Please Login or Register  to view this content.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

+ 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. Macro to find all specific values in column and replace adjacent cell values
    By dblock02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2013, 06:03 AM
  2. [SOLVED] Faster way to find and replace multiple values with corresponding values
    By babbeleme1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-18-2013, 06:50 PM
  3. "Find and Replace" missing the ability to replace values?
    By dylanemcgregor in forum Excel General
    Replies: 6
    Last Post: 06-05-2013, 01:13 AM
  4. Find and replace values...
    By Jay3253 in forum Excel General
    Replies: 2
    Last Post: 06-26-2007, 10:32 AM
  5. Find and Replace values from multiple lookup values
    By Gregula82 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2007, 03:12 PM

Tags for this Thread

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