+ Reply to Thread
Results 1 to 5 of 5

Summing Monthly Values based on different rates between Dates

  1. #1
    Registered User
    Join Date
    06-08-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    44

    Summing Monthly Values based on different rates between Dates

    Greetings all,

    I have a table specifying rates which are effective between two dates (inclusive) as below.

    'Rate Table'
    RateTable.PNG

    I list each day getting the yearly rate (Column B) the date falls in based on the Rate Table, then divide that by 365 (current calendar year days) to give me my daily rate (Column C).

    'Daily Table'
    DailyRate.PNG

    Column B
    Please Login or Register  to view this content.
    Column C
    Please Login or Register  to view this content.
    Then to work out the value over a month basis, I do a simple Sumproduct from the Daily Table each month end as the whole month.

    'Monthly Table'
    MonthlyTable.PNG

    Column F
    Please Login or Register  to view this content.
    Is there a formula that is able to what Column F calculates without the need for the 'Daily Table'?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Summing Monthly Values based on different rates between Dates

    See if this one gives the correct results.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    It works with your sample file, but I haven't tested it beyond that.

  3. #3
    Registered User
    Join Date
    06-08-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    44

    Re: Summing Monthly Values based on different rates between Dates

    Perfect, exactly what I'm after, even when changing the date ranges.

    How is Lookup determining the amount of days x rate?

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Summing Monthly Values based on different rates between Dates

    If you look at this formula which takes the dates for March 2019 from your list of dates in column A, it will be easier to see how the lookup is working.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    then compare that to the full formula,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    where the section in red generates the list of dates in A2:A32 as an array by calculating back from the date in E2 to the start of the month.

    Lookup pulls the annual rate for each individual day. Sumproduct does the division, then adds it all together.

    Try using the formula evaluation tool to follow the steps (Formulas tab > Evaluate Formula). It might be easier with a smaller date range, if you set the end date in E2 to earlier in the month it should still work.

  5. #5
    Registered User
    Join Date
    06-08-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    44

    Re: Summing Monthly Values based on different rates between Dates

    Thanks Jason, I originally tried to evaluate with F9, the rang was too much. Using Evaluate explains it fine.

+ 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] Summing quarters based on monthly data
    By jcon87 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2019, 05:00 PM
  2. Summing values based on their dates
    By Lyndo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2015, 03:08 PM
  3. Summing prize values based on dates prizes issued and also when they are redeemed
    By The Black Doctor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2014, 09:32 PM
  4. Summing values in named ranges based on dates, multiple sheets!
    By giggsteve8 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2013, 01:42 PM
  5. Replies: 5
    Last Post: 03-07-2013, 11:38 AM
  6. Summing values from different dates for monthly total
    By HP RodNuclear in forum Excel General
    Replies: 1
    Last Post: 01-21-2011, 11:32 AM
  7. Summing Monthly values
    By ATK in forum Excel General
    Replies: 1
    Last Post: 02-16-2006, 06:45 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