+ Reply to Thread
Results 1 to 10 of 10

Adding multiple cells of text into one cell based on ID number

  1. #1
    Registered User
    Join Date
    06-29-2017
    Location
    Cardiff, Wales
    MS-Off Ver
    2010
    Posts
    20

    Adding multiple cells of text into one cell based on ID number

    I'm having difficulty with combining a number of text cells all relating to one ID number into one cell which states all of the "Actions" in this case. I have tried using the VLookup function but it returns N/A because of finding text from a number. I have attached an example sheet to show my problem.
    Anyone have any ideas?Example.xlsx

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Adding multiple cells of text into one cell based on ID number

    What EXACTLY would the expected output be in your sample file?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-29-2017
    Location
    Cardiff, Wales
    MS-Off Ver
    2010
    Posts
    20

    Re: Adding multiple cells of text into one cell based on ID number

    Taking ID 1 for example, it would be combining the actions of 1.1,1.2,1.3 maybe separated by // or similar. I am not able to change the table setup, however ugly it may be unfortunately.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Adding multiple cells of text into one cell based on ID number

    Please answer my question:

    What EXACTLY would the expected output be in your sample file?

  5. #5
    Registered User
    Join Date
    06-29-2017
    Location
    Cardiff, Wales
    MS-Off Ver
    2010
    Posts
    20

    Re: Adding multiple cells of text into one cell based on ID number

    If input ID is "1", Output would be "Do this//Do that//Do everything"

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Adding multiple cells of text into one cell based on ID number

    What EXACTLY will be the output in your sample file?

    Excel 2016 (Windows) 32 bit
    F
    G
    5
    Input ID Output Actions
    6
    5
    Combined text of all corresponding actions
    Sheet: Feuil1

  7. #7
    Registered User
    Join Date
    06-29-2017
    Location
    Cardiff, Wales
    MS-Off Ver
    2010
    Posts
    20

    Re: Adding multiple cells of text into one cell based on ID number

    "Do this//Do that"

    Sorry am I not being clear?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Adding multiple cells of text into one cell based on ID number

    You are now, thanks. You must learn to answer questions precisely, then you will get help quicker.
    Last edited by AliGW; 07-11-2017 at 05:52 AM.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Adding multiple cells of text into one cell based on ID number

    Please Login or Register  to view this content.
    2 named ranges called "ID" and "Actions" for columns B and D of your table

    Refers to: =OFFSET(Feuil1!$B$4,,,COUNT(Feuil1!$B$4:$B$100),1)

    and

    =OFFSET(Feuil1!$D$4,,,COUNT(Feuil1!$D$4:$B$100),1)

    in G6: =get_Actions(F6)
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    06-29-2017
    Location
    Cardiff, Wales
    MS-Off Ver
    2010
    Posts
    20

    Re: Adding multiple cells of text into one cell based on ID number

    Perfect, finally got that transferred over and its working. Marvelous, thanks.

+ 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. Combining text from multiple cells based on ID number
    By blockbyblock in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-11-2017, 04:50 AM
  2. [SOLVED] Adding multiple values based on certain text in another cell
    By n3mcx1 in forum Excel General
    Replies: 2
    Last Post: 10-14-2015, 10:07 AM
  3. Function That Shows Sum of Multiple Cells or 0 Based On Text in Another Cell
    By ralphr1959 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-01-2014, 11:13 AM
  4. Adding multiple cells based on the result of a data validation cell
    By ronrona96 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-20-2013, 12:19 AM
  5. [SOLVED] Multiple text values in 1 cell separating into two cells in number format
    By Mengo85 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2013, 10:50 AM
  6. Replies: 2
    Last Post: 12-03-2011, 03:51 AM
  7. adding to cells when other cell = a multiple of a number
    By butterstick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2007, 05:26 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