+ Reply to Thread
Results 1 to 3 of 3

Lookup based on concatenated data in a cell

  1. #1
    Registered User
    Join Date
    10-20-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    2010
    Posts
    38

    Lookup based on concatenated data in a cell

    Hi Guys

    I have a workbook which contains 2 worksheets 'Database' and 'Project'

    On the database sheet 'First Name' and 'Surname' are in separate columns A & B

    On the project sheet they are concatenated in column A 'Allocated to'

    In column B I want to return a mobile number.

    Not sure what formula to use here.

    Help please
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: Lookup based on concatenated data in a cell

    Maybe, put this on B2 and drag down:

    =IFERROR(INDEX(Database!$C$2:$C$4,MATCH(1,INDEX((Database!$A$2:$A$4=LEFT(A2,FIND(" ",A2,1)-1))*(Database!$B$2:$B$4=TRIM(RIGHT(SUBSTITUTE(TRIM(A2)," ",REPT(" ",255)),255))),),0)),"")
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-20-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    2010
    Posts
    38

    Re: Lookup based on concatenated data in a cell

    Wow what a formula - not surprised I was having trouble with that one.
    It works like a dream. Well done Azumi!
    Thanks very much for the help.

+ 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. Lookup and return multiple values concatenated in one cell
    By jstanley41 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2018, 03:12 PM
  2. Lookup and return multiple values concatenated into one cell
    By funinsum in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-09-2015, 06:26 PM
  3. [SOLVED] Value of cell based on concatenated values
    By Michael Bass in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2014, 11:10 AM
  4. Lookup multiple values concatenated into one cell without duplicates
    By Atul Maskara in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2013, 09:33 AM
  5. [SOLVED] Match multiple substrings in a cell against a lookup table and return concatenated values
    By stevewc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2013, 10:50 AM
  6. [SOLVED] Lookup for concatenated data
    By Hari in forum Excel General
    Replies: 2
    Last Post: 05-20-2006, 01:00 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