+ Reply to Thread
Results 1 to 7 of 7

Change multiple rows to multiple columns with one row

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Change multiple rows to multiple columns with one row

    I am trying to save myself a huge manual formatting issue here...

    I have data for employees with benefits data although the reports run out of our HRIS gives us seperate rows for EACH benefit. The carrier I need to send it to requires that we have one row per employee with multiple columns for the benefits.

    I think its an easy fix but can't figure it out.

    Data looks like this:


    Clock number, name, address, SSN, benefit, coverage amount

    so it looks like this in its current format:

    0001 John Doe 123 Main st. 111-11-1111 Life Insurance 50,000
    0001 John Doe 123 Main st. 111-11-1111 Long term disability 4,000
    0001 John Doe 123 Main st. 111-11-1111 ADD 50,000

    There are only rows for benefits that are currently there. Meaning, if someone had ADD insurance there would be row listing, however if another employee did not elect it, there would not be a row listing that.

    Here is an attachment with some example data to show what i am trying to do.
    data example.xlsx

    Thanks!
    Last edited by FDibbins; 11-15-2012 at 07:11 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Change multiple rows to multiple columns with one row

    I understand that you are working with perhaps confidential information, but i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, what your expected outcome is, and how you arrived at that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-15-2012
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Change multiple rows to multiple columns with one row

    Ok I uploaded a file without the confidential data to the original post.

  4. #4
    Registered User
    Join Date
    11-15-2012
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Change multiple rows to multiple columns with one row

    well i think i figured it out without any messy formulas... Since each row had a unique identifier (clock number), I ran a pivot table with the clock number as the row labels, coverage for the column labels, and the coverage for the data. THen I put in a new sheet, remove the duplicate employee records, and ran a vlookup against the pivot table to bring that data back to ee records on the same line. works!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Change multiple rows to multiple columns with one row

    sounds like a great solution

    If you have solved you're (own) question, please mark this thread as solved

    I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

  6. #6
    Registered User
    Join Date
    11-15-2012
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Change multiple rows to multiple columns with one row

    Sorry newbie here. Didn't know how. Thanks.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Change multiple rows to multiple columns with one row

    No problem, thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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