+ Reply to Thread
Results 1 to 10 of 10

Merge and Compile Data

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Merge and Compile Data

    Hello:

    Please refer to attachced sheet.

    Sheet2 is the employee ClockIn-Clockout info
    Each day will have 4 columns and data will start from Cell O46

    I want to compile Clockin-ClockOut data in Sheet3 by merging Clockin-ClockOut field together.

    As an example I have manually pasted 3 days for Employee "Rojee"

    Either VB Macro or formual would work for me.

    Please let me know if any questions.

    Thanks in advance for your help.


    Riz
    Attached Files Attached Files
    Last edited by rizmomin; 05-02-2013 at 10:21 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Merge and Compile Data

    you know excel recognizes times right? 9:00 AM is recognized as a time then you can do all of your calculations with that, let me know if that works for you

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Merge and Compile Data

    Hello:

    I am not sure what you mean.

    Please refer to earlier attached workbook.

    Riz
    Last edited by rizmomin; 05-01-2013 at 10:47 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Merge and Compile Data

    Hi :

    Please help

    Riz

  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,048

    Re: Merge and Compile Data

    I think what scott meant was that instead of entering likes like you did...
    938...1720
    you should be entering them as...
    9:38...17:20

    excel will then recognize them as times, and excel is able to work with times pretty easily. It treats all times as fractions/decimals of a day (of 1), so that, even if a cell displays 08:00 am, excel actually "sees" it as 0.33. 06:00 is 0.25, 18:00 is 0.7 and so on
    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

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Merge and Compile Data

    Hello FBDibbins:

    I think there is some misunderstanding.
    Please open the earlier attached excel sheet.
    Sheet2 shows employees ClockIn-Clockout data in the format as shown in Sheet2.
    I want to translate this data for all employees so that i can see the whole month of data.
    The grid for this is in Sheet3.
    Since there will be one cell per employee per day in Sheet3, i wanted to have clockin-clockout data merged in one cell.
    The purpose of this is to visually see who worked on which day.
    Example : If for any given employee ClockIn=1002 & Clock Out=1620 then this needs to be merged as "1002-1620" (without ")in put the appropriate cell for the employee.
    I will be ok with VB macro or Excel formula/function to perform this task.

    I hope i have clarify my problem.

    Please let me know if any questions.

    Thanks

    Riz

  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,048

    Re: Merge and Compile Data

    There is no misunderstanding, and I did open your file

    On sheet2 P48 you have 938. A assume this is 38 minutes past 9?

    If so, then it needs to be entered as 9:38

    However, to answer your question, in sheet3 C2, use this, copied down and across...

    =IFERROR(INDEX(Sheet2!$O$46:$AL$78,MATCH(C$1,OFFSET(Sheet2!$O$47,-1,MATCH(Sheet3!$A2,Sheet2!$O$47:$AL$47,0)-1,15,1),0),MATCH($A2,Sheet2!$O$47:$AL$47,0)+1)&"-"&INDEX(Sheet2!$O$46:$AL$78,MATCH(C$1,OFFSET(Sheet2!$O$47,-1,MATCH(Sheet3!$A2,Sheet2!$O$47:$AL$47,0)-1,15,1),0),MATCH($A2,Sheet2!$O$47:$AL$47,0)+2),"")

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Merge and Compile Data

    Hi FDibbins:

    You are awesome.
    This will work great for me.
    Love it and appreciate for your kind help.

    Riz

  9. #9
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Merge and Compile Data

    Hi FDibbins:

    You are awesome.
    This will work great for me.
    Love it and appreciate for your kind help.

    Riz

  10. #10
    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,048

    Re: Merge and Compile Data

    Happy to help and thanks for the feedback

+ 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