+ Reply to Thread
Results 1 to 8 of 8

multiple data in single cell lookup in another one data

  1. #1
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    multiple data in single cell lookup in another one data

    see sample file, i need a formula to do like B column,

    I WANT MAKE LIKE B COLUMN, COMPARE A COLUMN DATA IN C,D COLUMN AND ALL DATA SHOULD BE IN B COLUMN..
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: multiple data in single cell lookup in another one data

    Hi,

    without UDF

    =IFERROR(VLOOKUP(TRIM(MID(SUBSTITUTE(A2,"|",REPT(" ",100)),1,100))+0,$C$2:$D$100,2,0),"")&IFERROR("|"&VLOOKUP(TRIM(MID(SUBSTITUTE(A2,"|",REPT(" ",100)),100,100))+0,$C$2:$D$100,2,0),"")&IFERROR("|"&VLOOKUP(TRIM(MID(SUBSTITUTE(A2,"|",REPT(" ",100)),200,100))+0,$C$2:$D$100,2,0),"")&IFERROR("|"&VLOOKUP(TRIM(MID(SUBSTITUTE(A2,"|",REPT(" ",100)),300,100))+0,$C$2:$D$100,2,0),"")

    Regards
    Attached Files Attached Files
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: multiple data in single cell lookup in another one data

    Thanks for reply, its working, but i have many data in C,and D column, if i insert all data in C,D column then not working properly. many data not showing, now am using these through text to column function,

    export all A column data into many column using text to column function, after that i look individually in every column to sn code and service column,.. its too long process, so only i asked this question.
    Last edited by vengatvj; 11-09-2013 at 12:23 PM.

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: multiple data in single cell lookup in another one data

    Hi, the formula looks for only the first 4 matches, in order to extract the fifth one add to the formula a new segment

    &IFERROR("|"&VLOOKUP(TRIM(MID(SUBSTITUTE(A2,"|",REPT(" ",100)),400,100))+0,$C$2:$D$100,2,0),"")

    ------------------

    You have also to adjust VLOOKUP range: maybe c2:d1000.

    Maybe I'd need another sample file.

    Regards

  5. #5
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: multiple data in single cell lookup in another one data

    dear buddy, your formula is working good, but, not working when i paste any data in A, C,D column, i dont know what to do, i have sensitive data, thats y i cant able to give in this thread.

  6. #6
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: multiple data in single cell lookup in another one data

    Hi,

    maybe you have only to adjust vlookup references. Example: here vlookup will check for exact matches in range C2:D3000

    IFERROR(VLOOKUP(TRIM(MID(SUBSTITUTE(A2,"|",REPT(" ",100)),1,100))+0,$C$2:$D$3000,2,0),"")&IFERROR("|"&VLOOKUP(TRIM(MID(SUBSTITUTE(A2,"|",REPT(" ",100)),100,100))+0,$C$2:$D$3000,2,0),"")&IFERROR("|"&VLOOKUP(TRIM(MID(SUBSTITUTE(A2,"|",REPT(" ",100)),200,100))+0,$C$2:$D$3000,2,0),"")&IFERROR("|"&VLOOKUP(TRIM(MID(SUBSTITUTE(A2,"|",REPT(" ",100)),300,100))+0,$C$2:$D$3000,2,0),"")


    Hope it helps
    -----------------------


    In example attached I've stretched the formula to six vlookups
    Attached Files Attached Files
    Last edited by canapone; 11-09-2013 at 01:01 PM.

  7. #7
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: multiple data in single cell lookup in another one data

    Ya now its working great , thank you very very very much dear .... Congrats..

  8. #8
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: multiple data in single cell lookup in another one data

    Hi,

    thanks for your kind feedback

    इटली से नमस्ते

+ 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. Desired multiple data into single cell
    By namedas in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-05-2013, 07:26 AM
  2. Lookup multiple data points to find info in a single cell
    By cradams72 in forum Excel General
    Replies: 1
    Last Post: 08-17-2011, 10:51 AM
  3. Multiple lookup in a single cell with data validation
    By luckiest man in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-08-2011, 01:17 AM
  4. Multiple lookup in a single cell with data validation
    By luckiest man in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2011, 01:02 AM
  5. Replies: 9
    Last Post: 07-15-2010, 11:59 AM

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