+ Reply to Thread
Results 1 to 11 of 11

VBA - to tranpose row into column based on front cell value

  1. #1
    Registered User
    Join Date
    01-11-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    8

    VBA - to tranpose row into column based on front cell value

    Hi all, I wish to have a macro to help create new workbooks based on range of data.
    My orginal workbook will have data as below

    Name Group Speak Read Written
    Alice ABC Good Good Normal
    Grace ABC Normal Unable Good
    Kelly BCD Normal Normal Good
    Jess CEF Unable Unable Normal

    By click the macro, it could help me generate new workbook template as below

    Name Type scale
    Alice Speak Good
    Alice Read Good
    Alice written Normal
    Grace Speak Normal
    Grace Read Unable
    Grace Written Good
    Kelly Speak Normal
    Kelly Read Normal
    Kelly Written Good
    Jess Speak Unable
    Jess Read Unable
    Jess Written Normal

    Appreciate if anyone can help to create the vba.
    Thanks
    in advance

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

    Re: VBA - to tranpose row tinto column based on front cell value

    Assuming data starts from A1 and no blank row/column
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: VBA - to tranpose row tinto column based on front cell value

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: VBA - to tranpose row tinto column based on front cell value

    try this macro, it will write the output at row=2, column =10 please feel free to ask any questions

  5. #5
    Registered User
    Join Date
    01-11-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: VBA - to tranpose row tinto column based on front cell value

    Thanks for your help.

    How about if the data start from A1 but those speak, read, written column is from K1 ?
    Btw, I wish to generate the result into New Workbook with start from column A1.

    Again appreciate your kind assistance

  6. #6
    Registered User
    Join Date
    01-11-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: VBA - to tranpose row tinto column based on front cell value

    Tried and the result slight out of my expectation.
    Anyway, thanks for your help

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

    Re: VBA - to tranpose row into column based on front cell value

    Upload your workbook.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  8. #8
    Registered User
    Join Date
    01-11-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: VBA - to tranpose row into column based on front cell value

    Quote Originally Posted by jindon View Post
    Upload your workbook.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Thanks for your advice, uploaded as below
    Attached Files Attached Files

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

    Re: VBA - to tranpose row into column based on front cell value

    1)
    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

    2) try
    Please Login or Register  to view this content.
    Edit: Code has been edited
    Last edited by jindon; 01-16-2018 at 12:34 AM.

  10. #10
    Registered User
    Join Date
    01-11-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: VBA - to tranpose row into column based on front cell value

    Thanks, but i wish the after sheet created under new workbooks.
    Possible ?

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

    Re: VBA - to tranpose row into column based on front cell value

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

+ 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] Tranpose Column to Rows with 4 items
    By johnreid7477 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2016, 01:19 AM
  2. [SOLVED] Tranpose number to multiple column
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-24-2015, 10:46 PM
  3. How to tranpose 2 column excel spreadsheet by column A group
    By kowalski_ldn in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-24-2013, 05:29 AM
  4. tranpose range of column data into row
    By seowfung75 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-07-2013, 06:51 AM
  5. Tranpose column to rows with header
    By dennismiro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-13-2012, 02:13 AM
  6. VBA to tranpose - stops at Column E
    By s00shi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2010, 11:28 AM
  7. how do i tranpose one row to multiple column?
    By ALEX in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-28-2005, 12:05 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