+ Reply to Thread
Results 1 to 6 of 6

Creating text string based on column titles and values below

  1. #1
    Registered User
    Join Date
    06-03-2014
    Posts
    3

    Creating text string based on column titles and values below

    Hi all,

    So, in Excel 2010 I'm wondering if there's a way to create a text string at the end of a row based on whether or not columns have a value in that row. I've put in an example below, where column F outputs the string based on the values in columns B–E.

    A B C D E F
    1 id Test A Test B Test C Test D Test string
    2 1A Yes Test B
    3 2B Yes Yes Yes Test A, Test C, Test D
    4 3C Yes Yes Test A, Test D

    Thanks!
    Last edited by h2whoa; 01-19-2016 at 05:59 AM. Reason: Minor corrections

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Creating text string based on column titles and values below

    Hello and welcome to the forum
    there are a lot of way but first let us know how many columns of data you have
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    06-03-2014
    Posts
    3

    Re: Creating text string based on column titles and values below

    Hi Hemesh,

    Thanks! I have 9 columns of data to run this through (and 1500 rows)

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Creating text string based on column titles and values below

    then you can use UDF provided by Tigeravater
    http://www.excelforum.com/tips-and-t...geravatar.html
    copy paste the code by hitting alt+F11
    then go to insert tab click module copy paste code and then use the same as worksheet function as in J2
    copy paste below then hold control shift together and then hit enter to make it array formula

    =ConcatAll(IF(B2:K2="yes",$B$1:$K$1,""),",")
    Attached Files Attached Files
    Last edited by hemesh; 01-19-2016 at 06:15 AM.

  5. #5
    Registered User
    Join Date
    06-03-2014
    Posts
    3

    Re: Creating text string based on column titles and values below

    Quote Originally Posted by hemesh View Post
    then you can use UDF provided by Tigeravater
    http://www.excelforum.com/tips-and-t...geravatar.html
    copy paste the code by hitting alt+F11
    then go to insert tab click module copy paste code and then use the same as worksheet function as in J2
    copy paste below then hold control shift together and then hit enter to make it array formula

    =ConcatAll(IF(B2:K2="yes",$B$1:$K$1,""),",")
    Awesome! Thank you so much!

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Creating text string based on column titles and values below

    you are welcome !

    if this solves your query then you can mark thread as solved. Please read the signatures in post#2.

    I would appreciate if you consider adding rep to the TIGERAVATER who wrote this code to make life much easy

+ 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. Replies: 2
    Last Post: 12-29-2014, 11:24 PM
  2. Creating new column/value based on values in three columns
    By rkwpnw in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-09-2013, 02:16 PM
  3. chart x/y values based upon string match in another column
    By tedmc54 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-19-2013, 04:03 AM
  4. [SOLVED] Match Text within String to Column of Values
    By jstar88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2012, 12:05 AM
  5. Pull row/column titles based on values inside an array
    By julzzzz in forum Excel General
    Replies: 1
    Last Post: 03-29-2012, 06:45 PM
  6. adding values as 1 string, based on adjacent column
    By TCountryman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2010, 10:51 AM
  7. Creating an Array to output titles(text)
    By mashoutposse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2010, 02: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