+ Reply to Thread
Results 1 to 3 of 3

How to turn columns of data into a table

  1. #1
    Registered User
    Join Date
    09-23-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1

    How to turn columns of data into a table

    Hi all.

    I have columns of time card data listed like so:
    Dept. Name1 Day1 Hrs
    Dept. Name1 Day2 Hrs
    Dept. Name1 Day3 Hrs
    Repeat... for... whole... month...
    Dept. Name2 Day1 Hrs
    Repeat... for... 60+... employees...


    I want to create a table that goes like so:

    Name Department Date1 Date2 Date3 Date4 Date5
    Name1 Dept Hrs Hrs Hrs hrs
    Name2 Dept Hrs Hrs Hrs hrs
    Name3 Dept Hrs Hrs Hrs hrs

    Starting with zero coding experience (aside from with my ti-80 in middle school), I have tried to make a VBA macro using YouTube tutorials that does this, and I feel I've gotten close, but there's also something wrong with it and it is taking too much time. There are over a thousand rows.

    I would appreciate any advice or help.
    Last edited by CYCBurner; 09-23-2020 at 12:02 PM.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How to turn columns of data into a table

    Welcome to the forum. Can you upload your file so we can assist, as per the yellow banner above.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: How to turn columns of data into a table

    Looks like a job for a Pivot Table. Dates across the columns, Names on the Rows, Hours as the "data", and Dept in the "Page" Area.

    Screenshot 2020-09-23 121104.jpg
    Last edited by AlphaFrog; 09-23-2020 at 12:16 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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] turn list into table of data (lookup)
    By milo1984 in forum Excel General
    Replies: 2
    Last Post: 02-07-2017, 05:06 AM
  2. [SOLVED] How To Turn Two-Way Data Table Into Pivot Table
    By zanshin777 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-18-2015, 04:46 AM
  3. Replies: 1
    Last Post: 06-14-2014, 07:18 AM
  4. [SOLVED] Turn Data Into Table, Regardless of Size
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-02-2014, 12:11 PM
  5. Replies: 11
    Last Post: 01-08-2014, 09:51 AM
  6. [SOLVED] Trying to turn table of data into a chart with a filter
    By dwhite30518 in forum Excel General
    Replies: 5
    Last Post: 06-05-2012, 12:06 PM
  7. Pivot Table - 3 columns turn-around-times
    By William Elerding in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2005, 04:05 PM

Tags for this Thread

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