+ Reply to Thread
Results 1 to 8 of 8

VLookup with concatenate not producing result

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    640

    VLookup with concatenate not producing result

    =VLOOKUP(AB2,Database!B2:N17,CONCATENATE( 10& " " 11& " " &13),FALSE)
    Trying to get columns 10, 11 & 13 to join so it says "Mr Noddy Bigshoes" (Salutation, Forename & Surname).

    Can't get it to work though, has anyone got any suggestions please?

  2. #2
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    640

    Re: VLookup with concatenate not producing result

    =VLOOKUP(AB2,Database!B2:N17,CONCATENATE( 10, " ", 11, " ", 13), FALSE)
    and this gives me a #Value error???

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

    Re: VLookup with concatenate not producing result

    Can't do that.

    You'd have to do
    =VLOOKUP(..,..,10,FALSE)&" "&VLOOKUP(..,..,11,FALSE)&" "&VLOOKUP(..,..,13,FALSE)

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

    Re: VLookup with concatenate not producing result

    However, it would probably be better to do the concatenating on the Database Sheet.

    So on Databse, say in O2 and filled down put
    =K2&" "&L2&" "&N2

    Then your formula is
    =VLOOKUP(AB2,Database!B2:O17,14, FALSE)

  5. #5
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    640

    Re: VLookup with concatenate not producing result

    Why can't I combine the results?

    Am I meant to amend anything on yours as Excel doesn't like it at all

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

    Re: VLookup with concatenate not producing result

    Quote Originally Posted by Sc0tt1e View Post
    Why can't I combine the results?
    Good question, I have no idea. But you just can't. Sorry

    Quote Originally Posted by Sc0tt1e View Post
    Am I meant to amend anything on yours as Excel doesn't like it at all
    Yes, I didn't bother writing the entire vlookup 3 times changing only 10 to 11 to 13
    so the ..,.. is meant to be the LookupValue and the LookupRange AB2,Database!B2:N17

    Looks like Ben did it for you.

  7. #7
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: VLookup with concatenate not producing result

    VLOOKUP can't return multiple cells. So you're basically giving the formula nonsense instructions for which row it's supposed to return from.

    Try this:
    =VLOOKUP(AB2,Database!B2:N17,10,FALSE)&" "&VLOOKUP(AB2,Database!B2:N17,11,FALSE)&" "&VLOOKUP(AB2,Database!B2:N17,12,FALSE)
    EDIT:
    ah, ninja'd by Jonmo1.

  8. #8
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    640

    Re: VLookup with concatenate not producing result

    Ah, thank you Mr Hensel

    I did not know you couldn't combine results, how frustrating.

+ 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. summing cells that have result producing formual
    By Unkle in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-19-2013, 03:07 PM
  2. [SOLVED]Formula producing wrong result
    By tobu56 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 10-26-2013, 08:59 PM
  3. Data Table producing inconsistent result
    By Dinsy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-04-2013, 12:38 PM
  4. [SOLVED] Producing a result of zero if there is no data in the cell
    By Marvo in forum Excel General
    Replies: 2
    Last Post: 12-23-2012, 02:03 PM
  5. SUM function not producing correct result
    By angiebro in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-28-2010, 06:10 PM

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