+ Reply to Thread
Results 1 to 4 of 4

Macro to Transpose 5 Rows of Data to a New Sheet as per sample

  1. #1
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Macro to Transpose 5 Rows of Data to a New Sheet as per sample

    Dear All,

    I am using Excel 2013 and I have an issue as shown in the sample file attached.

    I have a Main sheet (sample shows only data for 2 Staff).
    Data starts in Cell A1 till Column J1
    Headers are in Row 1

    I need a Macro which should

    1) Create a new Output Sheet.

    2) Copy the Headings A1 to G1 from Main Sheet to the Output sheet and the remaining details of Description from Column H in transposed format viz Basic, Housing Allowance, Transport Allowance, Other Allowance, Social Allowance to the Output Sheet.

    3) Each Staff Output will be on one row on the Output sheet.

    4) The macro should calculate the Total for each Row under Column M on the Output sheet.

    Please refer to the sample for further explanation. I have colored the cells for explanation purposes only.

    Thanks in advance for any help
    Attached Files Attached Files
    Last edited by sameer79; 09-21-2022 at 04:06 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Macro to Transpose 5 Rows of Data to a New Sheet as per sample

    With pivot table.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Macro to Transpose 5 Rows of Data to a New Sheet as per sample

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Re: Macro to Transpose 5 Rows of Data to a New Sheet as per sample

    Dear Jindon,
    Sorry for the late reply.

    Thanks for the fantastic code. Works like a charm.
    Post marked Solved.

+ 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] Macro to transpose data from active sheet to new sheet
    By sameer79 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2021, 06:54 AM
  2. Macro to transpose data into new row on a different sheet?
    By so4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2020, 03:18 AM
  3. Macro to transpose the data from tab to another sheet
    By young_86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2016, 01:22 PM
  4. Transpose data to another sheet using macro
    By geliedee in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-29-2015, 03:49 PM
  5. [SOLVED] Automatically transpose the data in sheet 1 rows into columns in sheet 2.
    By Azalea11 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 12-16-2014, 11:07 AM
  6. [SOLVED] Macro to Transpose data in rows to columns
    By Shanthuday in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2012, 08:00 AM
  7. [SOLVED] Transpose column sections into sequential rows of new sheet, Macro help
    By ImmunoNut in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2012, 01:11 AM

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