+ Reply to Thread
Results 1 to 5 of 5

Creating Complex Column Output Based on Other Rows

  1. #1
    Registered User
    Join Date
    07-17-2018
    Location
    Kansas
    MS-Off Ver
    OFFICE 365 PRO PLUS
    Posts
    14

    Creating Complex Column Output Based on Other Rows

    Hello!

    I need to combine multiple columns of data into a single value. For example, if you look at the attached file there are 8 separate rows describing the subject's condition and trial (columns A, B, C, D, G, H), I need all of this information represented within a single name (M42_None_1__Building_Kansas_1back).
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Creating Complex Column Output Based on Other Rows

    Hi -

    Why don't you just concatenate the cells with another cell that has your "_" divider in it? Formula in Cell J2 looks like this:

    =A2&$K$1&B2&$K$1&C2&$K$1&D2&$K$1&E2&$K$1&F2&$K$1&G2&$K$1&H2

    K1 is where I entered _

    The result is:

    M42_None_1_Building_0.099649719_20_Kansas_1back

    Hope that helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Registered User
    Join Date
    07-17-2018
    Location
    Kansas
    MS-Off Ver
    OFFICE 365 PRO PLUS
    Posts
    14

    Re: Creating Complex Column Output Based on Other Rows

    That looks like what I want to do; I just am not super excel savvy on how to complete such a thing.

    Did you attach a file? I don't see an attachment.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,266

    Re: Creating Complex Column Output Based on Other Rows

    Or another option in J2:

    =TEXTJOIN("_",TRUE,A2:D2)&"_"&TEXTJOIN("_",TRUE,G2:H2)

    copy down

  5. #5
    Registered User
    Join Date
    07-17-2018
    Location
    Kansas
    MS-Off Ver
    OFFICE 365 PRO PLUS
    Posts
    14

    Re: Creating Complex Column Output Based on Other Rows

    That is fantastic! It works really well!
    I appreciate you!

+ 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. Complex table transformation - Insert rows between 2000 rows and move column data to row d
    By justayellowbusman2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2019, 09:19 PM
  2. Creating a Command Button/Macro to hide and display rows in a Column based on value
    By garyclark21 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2015, 09:06 PM
  3. Creating a user defined function based on a complex worksheet formula
    By Atul Maskara in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-24-2014, 09:36 AM
  4. [SOLVED] Creating a function to output a region based on a list of counties
    By buckje123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2014, 09:45 AM
  5. Creating Output Based on Row #
    By tommahh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2013, 05:02 PM
  6. [SOLVED] Creating a Complex Series of Column Headers
    By t-sett in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2012, 09:24 PM
  7. Replies: 1
    Last Post: 11-22-2010, 01:52 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