+ Reply to Thread
Results 1 to 15 of 15

Transpone values from column into row like (A, B, C)

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    30

    Transpone values from column into row like (A, B, C)

    Hi guys,

    I need your help.

    I have different values in a column. For example

    A
    B
    C

    Now I want them in a row and with brackets and commas, so it can be used in a SQL-Statement like

    (A, B, C)


    Thanks for your help!
    Indigo

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Transpone values from column into row like (A, B, C)

    Try this.....
    Please Login or Register  to view this content.
    Press Ctrl + Shift + Enter as this is an array.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Transpone values from column into row like (A, B, C)

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-09-2015
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    30

    Re: Transpone values from column into row like (A, B, C)

    Hi

    @ Tom: this is an approach. But when I have a column with 500 numbers it is not possible.
    @ John: That is almost the result i want to have. Perhaps it is possible that the whole result (A, B, C) is in one cell?


    Regards
    Indigo

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Transpone values from column into row like (A, B, C)

    Try:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Transpone values from column into row like (A, B, C)

    Try this
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  7. #7
    Registered User
    Join Date
    02-09-2015
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    30

    Re: Transpone values from column into row like (A, B, C)

    Hi

    @ John. Nice. This works, But, as i see, i have to define all the cells which should be joined. This is again not possible for 500 cells.
    @ Yasser. Really nice. This works really good. I only have to add the brackets manually, but that´s not the problem.

    Thank you both!
    Indigo

  8. #8
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Transpone values from column into row like (A, B, C)

    Gruß Gott Indigo

    Modified version of John’s,

    Please Login or Register  to view this content.
    And my “Array” version

    Please Login or Register  to view this content.


    ..
    Both take this

    Using Excel 2007
    Row\Col
    A
    1
    A
    2
    B
    3
    C
    4
    D
    5
    E
    6
    ConcatenateRow

    And return this

    Using Excel 2007
    Row\Col
    A
    B
    1
    A (A, B, C, D, E)
    2
    B
    3
    C
    4
    D
    5
    E
    ConcatenateRow

    Alan
    Hof,
    Bayern
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Transpone values from column into row like (A, B, C)

    Quote Originally Posted by IndigoSK View Post
    Hi

    @ John. Nice. This works, But, as i see, i have to define all the cells which should be joined. This is again not possible for 500 cells.
    @ Yasser. Really nice. This works really good. I only have to add the brackets manually, but that´s not the problem.

    Thank you both!
    Indigo
    A little confused by your title. This modification should address your concerns.

    Please Login or Register  to view this content.

  10. #10
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Transpone values from column into row like (A, B, C)

    Hi John,
    Quote Originally Posted by JOHN H. DAVIS View Post
    A little confused by your title. This modification should address your concerns.
    .......
    .. I ( think ) to get the OPs final wishes you need to also look at row 1,

    Please Login or Register  to view this content.

    ( I expect he may not be using a header, as you may have (sensibly) assumed

    Alan

  11. #11
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Transpone values from column into row like (A, B, C)

    @ Alan - You're probably right! I always assume header. My default thinking.

  12. #12
    Registered User
    Join Date
    02-09-2015
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    30

    Re: Transpone values from column into row like (A, B, C)

    Really really nice! It is quite impressive how different the approach can be from both of you.
    And I finally have to say that the bavarian guys, beside soccer, can also write good vba codes

    Indigo
    Gruß aus Baden

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Transpone values from column into row like (A, B, C)

    Do you mean like this?
    Please Login or Register  to view this content.

  14. #14
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Transpone values from column into row like (A, B, C)

    . Hi,
    Quote Originally Posted by IndigoSK View Post
    ...... It is quite impressive how different the approach can be from both of you. .... have to say that the bavarian guys, beside soccer, can also write good vba codes ..
    Gruß aus Baden
    . Thanks for that, I was not notified of your Post... just caught it coincidentally...
    .....
    Quote Originally Posted by IndigoSK View Post
    ...... It is quite impressive how different the approach can be from both of you. .........
    .. And did you catch the response from jindon ? !! - Wow what a great “One Liner..” The sort that i wrack my brain to pull apart to see how it works, and learn from..
    . Multiple response Threads are the best to learn from. ( Shame there seems to be a problem just now I think of notification of Replies not always working??)
    Alan

  15. #15
    Registered User
    Join Date
    02-09-2015
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    30

    Re: Transpone values from column into row like (A, B, C)

    @ jindon:

+ 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. Transpose values in column to rows, and split cell values to extend column
    By SAMMM in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-03-2015, 12:52 AM
  2. Combining Column Values if Seperate Column Values are Equal
    By Drew67209 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-18-2014, 11:01 AM
  3. [SOLVED] Find Values in Column A and fill identical values in Column B
    By deviltronics in forum Excel General
    Replies: 6
    Last Post: 10-07-2014, 05:25 PM
  4. Replies: 2
    Last Post: 12-30-2013, 08:15 AM
  5. Macro that will copy values in Column J and paste values to Column B in new sheet
    By Phixtit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2010, 04:56 PM
  6. assigning date entries to week values and month values to sum column C-N values C-
    By the accountant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2010, 09:52 AM
  7. Transpone Excel tables with macro/VBA
    By onuytten in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2005, 04:22 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