+ Reply to Thread
Results 1 to 3 of 3

Multiple entries combined in one cell

  1. #1
    Registered User
    Join Date
    03-02-2007
    Posts
    26

    Multiple entries combined in one cell

    I am trying to lookup a value and return all of the assocuated information into one cell.
    Each returned piece of data should be seperated by a comma.
    I have gotten close to what I want, but it does not put every entry into the cell.
    IF(COUNTIF(A:A,$C1)>=ROWS($1:1),INDEX(B:B,SMALL(IF(A:A=$C1,ROW($1:$999)),ROW())),"")
    How do I concatenate each of the responses.
    I have been using Ctrl+Shift+Enter to enter the cormulas
    I am not looking for a VBA response.

    As you can see belowI only get the value in cell B1 entered into cell D1.
    I would like the answer to look like what is in cell D11

    When copied into cell C2, I don't get the single response Thanks



    MultipleCells.PNG

    Test_Example.xlsx

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Multiple entries combined in one cell

    You can't achieve it using inbuilt worksheet functions.

    You have to use UDF or Macro to get the expected result


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Multiple entries combined in one cell

    THis will do what you want, but it is a bit messy...
    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    P2228 Fill P2228-1 P2228 Fill, This, Way Fill This Way
    2
    P2228 This P2228-2 P2229 Thanks Thanks
    3
    P2228 Way P2228-3
    4
    P2229 Thanks P2229-1

    C1=A1&"-"&COUNTIF($A$1:A1,A1)
    copied down
    D1:D2 are your entries, I can give you a formula to extract them if needed

    E1=SUBSTITUTE(TRIM(G1&" "&H1&" "&I1&" "&J1&" "&K1&" "&L1&" "&M1&" "&N1&" "&O1)," ",", ")
    copied down
    G1=IFERROR(INDEX($B$1:$B$4,MATCH($D1&"-"&COLUMN(A1),$C$1:$C$4,0)),"")
    copy this down as needed, and across (I had it copied 9 times)

    Columns C and G onwards can be hidden if needced
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] Automatically add multiple original field entries total (that has multiple entries)
    By steverokh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2013, 01:20 AM
  2. Splitting multiple entries in single cell into multiple columns
    By David_Mitchell in forum Excel General
    Replies: 12
    Last Post: 01-24-2013, 06:57 AM
  3. Auto-Generating Entries based on combined Entries
    By Ice Burn in forum Excel General
    Replies: 3
    Last Post: 09-12-2011, 05:52 AM
  4. Replies: 2
    Last Post: 12-01-2009, 09:58 PM
  5. Handling of multiple entries in key cell
    By davegb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2005, 07: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