Closed Thread
Results 1 to 8 of 8

How to Merge multiple duplicate rows into columns

  1. #1
    Registered User
    Join Date
    03-17-2012
    Location
    Manila, Phlippines
    MS-Off Ver
    Excel 2007
    Posts
    7

    How to Merge multiple duplicate rows into columns

    Hi there this is a repost of my problem last night since my first post was wrongly done... anyhow here's my problem:

    i have this data that have lots of duplicate rows wherein they are the date a certain employee have had his time punch what i want to accomplish is that each date would be having only one row of 2 punch_in and 2 punch out.

    here's my workbook: for testing.xlsm

    simply put i want my the data in my rawdata sheet to appear like the one i have in sheet1

    also i found a working code here though it yields an almost similar result though its not the one that i needed

    here's the code:
    Please Login or Register  to view this content.
    thank you in advance for your help
    Last edited by geiollex; 03-18-2012 at 08:20 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to Merge multiple duplicate rows into columns

    That seems a little complex for something that simple worksheet formulas can accomplish. Delete your sheet1 so your RawData is the only sheet, then try this:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-17-2012
    Location
    Manila, Phlippines
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to Merge multiple duplicate rows into columns

    thank you very much!!! you're a life saver and that solves my problem


    thanks again

  4. #4
    Registered User
    Join Date
    03-17-2012
    Location
    Manila, Phlippines
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to Merge multiple duplicate rows into columns

    sorry to bring this back up and i hope this is not to much the code
    Please Login or Register  to view this content.

    really worked for me but would it be possible if the resulting table will be made on the same sheet?

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to Merge multiple duplicate rows into columns

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-17-2012
    Location
    Manila, Phlippines
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to Merge multiple duplicate rows into columns

    thank you for helping me out with that request

  7. #7
    Registered User
    Join Date
    12-13-2012
    Location
    SM, Ro
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to Merge multiple duplicate rows into columns

    Sorry to bring this up again, but it's related to the code from the first post. For me it's working very well, but now I have to manage more than 71000 positions.
    Up to 65536 it's ok but for bigger values (I've changed the number in the code) doesn't work.
    Is there a workarround for that?

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to Merge multiple duplicate rows into columns

    Please post your question in a new thread of its own. Please read the Forum Rules we all abide (link above in the menu bar).

    Thanks.

Closed 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