+ Reply to Thread
Results 1 to 5 of 5

use vlookup to return a concatenation of first name , last name

  1. #1
    Registered User
    Join Date
    09-04-2020
    Location
    Dubai
    MS-Off Ver
    Office for Mac Version 16.40
    Posts
    5

    use vlookup to return a concatenation of first name , last name

    Hi,

    I am trying to use vlookup to return a concatenation of first name , last name if the employee code given matches. The employee codes are available on both sheets whereas the firstname & last name are on different sheets.

    Please Login or Register  to view this content.
    I am using the above vlookup function. Could someone please point out where i am going wrong?

    Thank you.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: use vlookup to return a concatenation of first name , last name

    The VLOOKUP search for values in the most left column of searching area. In your case is the last one. And the fourth argument need to be set as False(exact match) when searching for codes
    First argument of VLOOKUP is OK. The second need to be a range who contains both columns : The searching column (Who need to be first in searching area) and the number of the return column. VLOOKUP returns the content of a cell from the search area. not a formula or whatever.
    You can use a combination Of INDEX- MATCH
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by tanasedn; 07-12-2021 at 02:30 AM.
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: use vlookup to return a concatenation of first name , last name

    VLOOKUP works natively from left to right. Use INDEX MATCH instead:

    =INDEX(Names!C:C&" "&Names!A:A,MATCH(Codes!A2,Names!D:D,0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: use vlookup to return a concatenation of first name , last name

    move Employee Code to Column A

    =VLOOKUP(A2,Names!A:D,2,FALSE) & " " & VLOOKUP(A2,Names!A:D,4,FALSE)

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: use vlookup to return a concatenation of first name , last name

    Thanks for the rep.

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

+ 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. VLOOKUP for concatenation
    By excelactuary in forum Excel General
    Replies: 3
    Last Post: 12-14-2017, 05:30 AM
  2. concatenation vlookup
    By amar502322 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-21-2017, 11:18 AM
  3. [SOLVED] return Variable Value through concatenation
    By kamelkid2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2014, 11:08 AM
  4. Vlookup and concatenation
    By mortenmd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2014, 08:37 AM
  5. Excel 2007 : vlookup combined with concatenation?
    By vulpen in forum Excel General
    Replies: 3
    Last Post: 06-25-2012, 01:20 PM
  6. VLOOKUP and Concatenation
    By Diarfe in forum Excel General
    Replies: 4
    Last Post: 05-18-2008, 11:06 AM
  7. [SOLVED] Carriage Return in a Concatenation
    By [email protected] in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-12-2006, 12:15 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