+ Reply to Thread
Results 1 to 3 of 3

Lookup Formula to find correct value & update

  1. #1
    Registered User
    Join Date
    02-18-2009
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    16

    Lookup Formula to find correct value & update

    Hello, I have an ID in Column I - this ID will partially match the ID in another file.

    What I would like to do is a find the full ID (using the partial ID) from the other sheet, and update all of the same partial IDs in my original file to the full ID.

    I tried VLOOKUP with True, however that did not bring in the correct corresponding ID.

    All IDs start with the same 5 digits, the following 5 digits are unique (like a UPC Code)

    What I am doing now is looking for the Partial ID in my second file, copying that - then doing a find and replace on my original file to update all the IDs.

    Any help would be greatly appreciated.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Lookup Formula to find correct value & update

    Difficult to visualize your setup.
    Take a typical vlookup
    =VLOOKUP(A1,'OtherSheet'!B:C,2,FALSE)

    Which dataset has only 5 digits, A1, or Column B on OtherSheet ?

    Can you work up a sample workbook and attach it?

  3. #3
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Lookup Formula to find correct value & update

    I assume you ID column contains only the last 5 digits of the full ID, right?
    If you can add a column to your full ID file with the following formula:
    Please Login or Register  to view this content.
    Assuming your first full ID is in cell B1, this will return the last 5 digits of your full ID code.
    Then, in your partial ID workbook, you can use the following formula to get the full ID:
    Please Login or Register  to view this content.
    You'll have to change the range A1:B14 in the formula to point to your full ID workbook file, specific sheet and range.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ 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. cannot find the correct formula to lookup the values from a listA in workbookB
    By jasmineapo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-02-2015, 02:46 PM
  2. [SOLVED] Why I'm not getting correct output from lookup formula?
    By mso3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2015, 10:12 AM
  3. [SOLVED] Trying to find the correct syntax for a lookup function
    By freebird76 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2013, 08:40 AM
  4. Replies: 2
    Last Post: 04-28-2013, 05:55 PM
  5. Replies: 1
    Last Post: 09-17-2012, 09:35 AM
  6. Lookup formula cell not showing correct value
    By matkalg in forum Excel General
    Replies: 9
    Last Post: 02-04-2011, 09:51 AM
  7. LOOKUP Formula not returning correct answer
    By preferiti in forum Excel General
    Replies: 10
    Last Post: 04-17-2009, 12:30 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