+ Reply to Thread
Results 1 to 11 of 11

Prorating data based on date

  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    houston
    MS-Off Ver
    Excel 2010
    Posts
    56

    Prorating data based on date

    Hello all. I have a bunch of data with delivery dates and I am trying to get some per week data. However, obviously some of the delivery dates are middle of the week and need to be prorated for week x and week x+1. I am able to get the week using the =weeknum() function but am unsure how to prorate the data per week based on week. anyone have any ideas?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Prorating data based on date

    Yes: Post a workbook with an example and desired result.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-19-2013
    Location
    houston
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Prorating data based on date

    The week starts on friday. Since the dates will overlap weeks I need to somehow prorate units for weeks. For example, Shipment 1 will have units for both week 47 and 48
    Last edited by DCRAIG3389; 11-18-2015 at 01:28 PM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Prorating data based on date

    Only you can see Shipment 1; we are left to wonder.

    Good luck.

  5. #5
    Registered User
    Join Date
    07-19-2013
    Location
    houston
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Prorating data based on date

    sample.xlsxsorry, attached is the sample

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Prorating data based on date

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    3
    Shipment
    Quantity
    ETA
    Week #
    Week #
    Units
    4
    1
    23,000
    Tue 11/24/2015
    48
    47
    33,000
    G4: =SUMIF($D$4:$D$7, F4, $B$4:$B$7)
    5
    2
    15,000
    Fri 11/20/2015
    47
    48
    42,000
    6
    3
    18,000
    Thu 11/19/2015
    47
    7
    4
    19,000
    Thu 11/26/2015
    48

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Prorating data based on date

    I'm not sure what you want so have given you two possibilities as I see the problem.
    1. The total for each week
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. The total for each week as the week progresses
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A
    B
    C
    D
    E
    F
    3
    Shipment Quantity ETA Week # Total Units/Wk Additive Units/week
    4
    3
    18000
    19/11/2015
    47
    33000
    18000
    5
    2
    15000
    20/11/2015
    47
    33000
    33000
    6
    1
    23000
    24/11/2015
    48
    42000
    23000
    7
    4
    19000
    26/11/2015
    48
    42000
    42000
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Registered User
    Join Date
    07-19-2013
    Location
    houston
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Prorating data based on date

    what i am looking for is the total of the units in the week. For example, if week 47 is 11/21-11/27 and i get a delivery on 11/24 of 10,000 units. I will only have 5,714 units for that week and the remainder will be for week 48.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Prorating data based on date

    This makes no sense to me at all. I'm out.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Prorating data based on date

    For example, if week 47 is 11/21-11/27
    11/21/15 is a Saturday; you said your week starts on Friday ...?

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Prorating data based on date

    Row\Col
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    1
    Wk Begin
    2
    16
    3
    Quantity
    Date
    Week #
    Qty1
    Qty2
    Week #
    Units
    4
    18,000
    Thu 11/19/2015
    47
    5,143
    12,857
    47
    7,286
    D4: =WEEKNUM(C4, $D$2)
    5
    15,000
    Fri 11/20/2015
    47
    2,143
    12,857
    48
    44,286
    E4: =ROUND(B4*(8 - WEEKDAY(C4, $D$2))/7, 0)
    6
    23,000
    Tue 11/24/2015
    48
    13,143
    9,857
    49
    23,428
    F4: =B4-E4
    7
    19,000
    Thu 11/26/2015
    48
    5,429
    13,571
    50
    0
    8
    I4: =SUMIF($D$4:$D$7, H4, $E$4:$E$7) + SUMIF($D$4:$D$7, H4-1, $F$4:$F$7)

+ 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] Need formula for prorating monthly salary based on hire/fire date and annual salary.
    By Excel_Help_Pls in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2015, 12:56 AM
  2. [SOLVED] Retrieve data based on a data date falling in specified date range
    By marks9172 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-24-2015, 02:50 PM
  3. Prorating Monthly into Weekly
    By CranstonWatts in forum Excel General
    Replies: 3
    Last Post: 01-04-2013, 10:31 PM
  4. [SOLVED] Formula assistance needed to sum data based on anniversary date and month date
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2012, 11:18 PM
  5. Replies: 4
    Last Post: 06-02-2012, 11:26 AM
  6. Help with formulas for slaries & fringes prorating
    By gussakit in forum Excel General
    Replies: 2
    Last Post: 01-13-2012, 09:26 AM
  7. Replies: 2
    Last Post: 09-20-2010, 02:51 PM

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