+ Reply to Thread
Results 1 to 3 of 3

merge contents of 2 cells into one

  1. #1
    Registered User
    Join Date
    10-23-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    10

    merge contents of 2 cells into one

    Hi

    Hoping that someone can pick this up as its something that has always annoyed me.

    I have a list of names on 1 sheet with relevant details of the team they are in and on another sheet I have a list of the same names with the comments they have made to a recent survey.

    What I want to do is to use a VLOOKUP function to match the comments with the group. The problem I have is that on the 1st sheet the forename and surname are together in one cell. In the other sheet the forename and surname are across 2 cells.

    what I was looking around for was some kind of function that would combine the 2 together into 1 cell for use in a VLOOKUP

    Really appreciate any thoughts or help

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: merge contents of 2 cells into one

    To combine the contents of the 2 cells try:
    =A1&" "&B1
    With forename in A1 and surname in B1 the formula gives you the names combined with a space between them.
    Alternatively check out the CONCATENATE function.

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: merge contents of 2 cells into one

    In a single step you can construct the lookup value in VLOOKUP like this:

    =VLOOKUP(A1&" "&B1,Sheet1!A1:D100,3,FALSE)

    if A1 is the first name and B1 is the last name.

+ 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