+ Reply to Thread
Results 1 to 4 of 4

Vlookup or other search formula?

  1. #1
    Registered User
    Join Date
    05-02-2017
    Location
    London
    MS-Off Ver
    Office 2013
    Posts
    10

    Vlookup or other search formula?

    Hi all,

    I'm trying to match some data to names. The problem is the formatting of everything as it is stored on a database which I extract but am given info in a different format.
    e.g

    Data: First name, Last name, Other info
    Database: Lastname-firstname-number, number

    What I want to do is have some kind of lookup to match the 'number' to the name in the data.

    I understand I will have to concatenate the names then create some kind of lookup to find the employeename then add the number to the name. The attachment hopefully explains it clearer.
    Attached Files Attached Files
    Last edited by excelflop; 09-20-2017 at 06:53 AM. Reason: clarity

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Vlookup or other search formula?

    I assume you have 3 sheets as below.

    1 sheet having first name and last name
    2 sheet having Employee name + number
    3 result sheet

    ResultSheet
    Row\Col
    A
    B
    C
    D
    1
    First name Last name Number Employee name + number
    2
    Bob Hoskins
    12345
    Hoskins,Bob12345


    A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy towards B column

    C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    D2=B2&","&A2&LOOKUP(10^10,SEARCH(B2&","&A2,Sheet2!A2),Sheet2!B2)

    Check the attached file.
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    05-02-2017
    Location
    London
    MS-Off Ver
    Office 2013
    Posts
    10

    Re: Vlookup or other search formula?

    That seems to work great. Thanks very much.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Vlookup or other search formula?

    Thanks for feedback

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Formula other than VLOOKUP to search and return a Value
    By hammer2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2017, 05:25 AM
  2. [SOLVED] 3 way vlookup with search formula
    By amanp786 in forum Excel General
    Replies: 5
    Last Post: 03-13-2015, 10:38 AM
  3. Help with VLookup formula to search entire workbook
    By qabajjar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2015, 09:38 AM
  4. [SOLVED] IF or VLookup Formula to Search for a specific SKU and copy it into a different column
    By Sweden12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2014, 12:57 PM
  5. Replies: 9
    Last Post: 06-16-2013, 04:58 PM
  6. Need help with Search + Vlookup Formula
    By mattsolar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2012, 07:45 PM
  7. [SOLVED] Search specific text formula and vlookup
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-19-2012, 03:26 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