+ Reply to Thread
Results 1 to 6 of 6

MACRO to insert rows and transpose values into new rows.

  1. #1
    Registered User
    Join Date
    12-15-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    3

    MACRO to insert rows and transpose values into new rows.

    Hi All,

    I need help creating a macro to insert some rows depending on whether or not there are values in columns C to I and tranpose them into the new rows. I also need the values in the ID column to be copied for each additional row created. I hope the example data below gives you guys a better idea.

    Thank you so much!
    ------------------------
    Current spreadsheet:

    ID Market

    1 House Residential Office Cliff
    2 Cliff
    3
    4 Office Residential
    5 Cliff
    6 House
    7
    8 Medical Office Store

    --------------------
    Desired outcome:

    1 House
    1 Residential
    1 Office
    1 Cliff
    2 Cliff
    3
    4 Office
    4 Residential
    5 Cliff
    6 House
    7
    8 Medical
    8 Office
    8 Store

  2. #2
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: MACRO to insert rows and transpose values into new rows.

    Are the numbers supposed to be carried over, or is it only for the example?
    If this helped, please click (*) Add Reputation

  3. #3
    Registered User
    Join Date
    12-15-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    3

    Re: MACRO to insert rows and transpose values into new rows.

    Hi there! The numbers need to be carried over as well. Thanks

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

    Re: MACRO to insert rows and transpose values into new rows.

    FWIW:

    Please Login or Register  to view this content.
    Results in Sheet2

  5. #5
    Registered User
    Join Date
    12-15-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    3

    Re: MACRO to insert rows and transpose values into new rows.

    This is exactly what I had trouble figuring out. Thank you so much again!

  6. #6
    Forum Contributor
    Join Date
    12-29-2014
    Location
    Indonesia
    MS-Off Ver
    Office 2010, 2013
    Posts
    125

    Re: MACRO to insert rows and transpose values into new rows.

    hi all, allow me to follow this content forum.thank 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. Insert Rows and Transpose
    By Niviac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2013, 03:07 PM
  2. [SOLVED] Macro with text to columns, insert rows, and paste special>transpose
    By diaphanous1138 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-22-2013, 02:49 PM
  3. [SOLVED] Macro to insert blank rows below rows with values
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2013, 11:48 AM
  4. [SOLVED] Need Help w/Macro that Insert Rows, Copy Row, and Transpose to Column
    By hiroki3296 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2012, 10:27 AM
  5. Insert rows, transpose data from column in to rows, in steps
    By mchevalier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2012, 08:14 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