+ Reply to Thread
Results 1 to 4 of 4

Macro to Convert Columns of Data Across Into Rows Down

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    Sydney
    MS-Off Ver
    Excel 365 Pro
    Posts
    6

    Macro to Convert Columns of Data Across Into Rows Down

    Hi,
    I have some payroll information that goes across columns which includes information such as hours and kms. I require a macro to extract the information from the columns such as hours, kms and the job performed and place on a new worksheet going down.
    The amount of columns across is dynamic and may be in the 100 of columns across. This varies month to month. If there is no data in both Kms and hours for that particular person and that particular job then no information is transferred over for that person in the new worksheet. I have included an example file which shows on the second tab the output I hope to get from the macro. examplepayroll.xlsx

    Thanks

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to Convert Columns of Data Across Into Rows Down

    Hi adamzee,
    try this
    Please Login or Register  to view this content.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,355

    Re: Macro to Convert Columns of Data Across Into Rows Down

    Hi Adam,

    I've use a macro many times to convert a Cross Tab table to a better Excel type table. See if example gets you closer to what you need.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    04-09-2014
    Location
    Sydney
    MS-Off Ver
    Excel 365 Pro
    Posts
    6

    Re: Macro to Convert Columns of Data Across Into Rows Down

    Thanks Nilem and MarvinP, both great solutions!

+ 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. Macro to Convert Columns to Rows
    By Bunnyla in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-30-2014, 09:54 AM
  2. [SOLVED] Vb macro coding to convert columns to rows
    By Dharani Suresh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2013, 12:53 AM
  3. [SOLVED] Using a macro to convert groups of rows to columns
    By LittleLisa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2012, 01:50 PM
  4. [SOLVED] Macro to convert 4 columns of data into rows, then repeat
    By liastar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2012, 03:52 AM
  5. Convert Data from Columns to Rows
    By gav0101 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-06-2008, 12:49 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