+ Reply to Thread
Results 1 to 8 of 8

Combine Data to Common Annual Date

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    4

    Combine Data to Common Annual Date

    I have payroll data broken out between various different time periods of varying length. I am trying to build a model that will automatically display the amount in a certain annual time period (e.g. 8/1/2011-8/1/2012), for multiple years.

    So far, in the first row of calculations I put the beginning date for the data, and in the second I have the end date. In the third, I find the number of days difference between the two. In the fourth, I find out how much payroll is paid out each day by dividing total payroll for that data set by the number of days in the data set. From this point on, I am hitting a snag.

    Is there a way that I can build the model so that it will do the following:

    A) Determine which annual time period(s) the data will fall into
    e.g 8/1/2010-2011, 8/1/2011-2012. If the data set went from 5/1/2011-9/30/2012, it would straddle the two annual periods and need to be split.

    B) Determine how many days fall in each annual period, and multiply that number by the daily payroll.

    C) Sum all data sets by the appropriate annual period. I have about 15 different payroll periods over a span of 4 years, and I need the end result to be payroll between 8/1 of each year and the next.

    Any help would be greatly appreciated

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,876

    Re: Combine Data to Common Annual Date

    Welcome to the Forum!

    It will be much easier to understand your problem if you provide your file. This allows us to see your data, layout, code (if there is any), much easier than describing it in several paragraphs. You still have to explain what you want, but it makes the whole process easier. If you are looking for formulas to produce a desired result, it helps if you create a mock-up of what you want the result to look like. And once we understand the problem, having your file will let us experiment with your data, formulas, and code, and possibly attach a file with a completed solution.

    To post a file:
    1. Under the text box where you type your reply click the Go Advanced button.
    2. In the next screen look above the reply box and click the paper click icon. You will get a pop-up screen.
    3. In the pop-up, click Add then Select to select a file from your local drive
    4. Upload it
    5. Click Done to attach it.

    It will be displayed underneath your post text. Alternatively as the last step you can click the Insert Inline button and a hyperlink to the file will be inserted directly into your post text in the spot where your cursor is set at the moment you click the button.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-07-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Combine Data to Common Annual Date

    Effective Date Workbook.xlsx

    My workbook is attached. The area above the black row is the data dump, and the area below is where I started my workbook. The yellow highlighted area is my goal.

  4. #4
    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: Combine Data to Common Annual Date

    Hi and welcome to the foum

    This is problematic on at least 2 different levels.

    1st, your "dates" in row 1 are not dates, they are text
    2nd, your "dates" in row 1 have considerable - and varying - overlaps...
    4/1/2009-10/1/2009
    4/1/2009-12/31/2009

    I would suggest that, if you can, you starndardize on the dates in row 1, and use actual dates, not a text date range
    Last edited by FDibbins; 08-09-2013 at 12:10 AM.
    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

  5. #5
    Registered User
    Join Date
    08-07-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Combine Data to Common Annual Date

    I would ignore the data dump above the black line, as I really just used it to get to the information below the black line. The majority of what I am trying to do is to get rid of the overlaps, because there are so many different payroll periods.

  6. #6
    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: Combine Data to Common Annual Date

    Im not too interested in the actual data row 2:16, my comment was related to the the format of the "dates" in the 1st row.

    We could probably fix this by adding to helper rows, 1 for the start date and 1 for the end date...
    start date =DATEVALUE(MID(B1,SEARCH("-",B1,1)+1,99))
    end date =DATEVALUE(LEFT(B1,SEARCH("-",B1,1)-1))

    Then use a sumifs() for the calcs?

  7. #7
    Registered User
    Join Date
    08-07-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Combine Data to Common Annual Date

    Is that different than what I have in row 20 and 21?

  8. #8
    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: Combine Data to Common Annual Date

    Hmm OK I didnt see that. I will take a look again

+ 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. How to combine data from multiple rows when common column headings exist?
    By pkoury in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-01-2013, 10:43 AM
  2. Combine data onto one row based on common field value
    By jkakareka in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-15-2012, 11:39 AM
  3. Combine Rows of Data on Common Value
    By jparrish in forum Excel General
    Replies: 1
    Last Post: 01-30-2009, 12:35 PM
  4. [SOLVED] Combine 2 spreadsheets w/1 common column of data, text and number
    By Ginger in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-26-2006, 06:50 PM
  5. combine cells under a common heading
    By Xhawk57 in forum Excel General
    Replies: 2
    Last Post: 03-08-2006, 04:10 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