+ Reply to Thread
Results 1 to 8 of 8

Calculate the cost over a period but with multiple variables

  1. #1
    Registered User
    Join Date
    05-17-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    0365
    Posts
    13

    Calculate the cost over a period but with multiple variables

    I'm trying to calculate the cost over a period of time where the start and end are provided in two cells (e.g. F4 is the start date and G4 is the end date).
    Sometimes the period between these two cells spans multiple financial years.
    In another table I have hourly rates based on the financial year. The table also shows the total annual rate.
    If the 2023-24 rate for the selected person is $64.16 (Q4), 2024-25 rate is $65.76 (S4) and 2025-26 is $67.40 (U4) and the date in F4 is 20-03-2023 and F5 is 16-03-2026, I need to factor in the hourly increase over the period defined in F4 and F5. The Resource Allocation table will also have the number of days and the number of hours. The only other variable is the name of the resource (column C). The name is in both the table where this calculation is to occur (L4) and the Resources and Annual Salary table with the hourly and annual rates.
    Sample.xlsx

    Is this even possible? If so, I would greatly appreciate anyone's help!

    Cheers
    Glen
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Calculate the cost over a period but with multiple variables

    is a solution with VBA(macros) allowed and you financial year doesn't start in january, so when does it start ?
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    05-17-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    0365
    Posts
    13

    Re: Calculate the cost over a period but with multiple variables

    Unfortunately no VBA but i could get away with Office Scripts if that works?
    The financial year starts 1st July

  4. #4
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Calculate the cost over a period but with multiple variables

    i'm not familiar with with Office Scripts, so i have to disappoint you ...

  5. #5
    Registered User
    Join Date
    05-17-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    0365
    Posts
    13

    Re: Calculate the cost over a period but with multiple variables

    That's ok, i appreciate your effort anyway!

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,579

    Re: Calculate the cost over a period but with multiple variables

    This proposal employs four helper columns and a helper row, all of which may be hidden for aesthetic purposes.
    1. Cell M2 is populated with 7/1/2022
    2. Cells N2:P2 are populated using: =EDATE(M2,12)
    3. Cells M3:P3 are populated using: =EDATE(M2,12)-1
    4. Cells M4:P18 are populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    5. Cells S2:Y2 are populated using: =IF(ISNUMBER(SEARCH("FY",S3)),INDEX($M3:$P3,COUNTIFS($S3:S3,"fy*")),"")
    6. The Cost per Activity column is populated using: =SUM(M4:P4)
    I believe that in row 4 the start date (5/30/2022) occurs before FY2022-23 starts (7/1/2022) so that the cost per activity on that row is incomplete.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    05-17-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    0365
    Posts
    13

    Re: Calculate the cost over a period but with multiple variables

    Hi
    That formula is some serious wizardry! Works perfectly (i'm sure you're not surprised).
    Many hours of searching and trial and error got me nowhere so i really appreciate it.
    I wholeheartedly, thank you and appreciate the clear explanation!

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,579

    Re: Calculate the cost over a period but with multiple variables

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Replies: 7
    Last Post: 01-30-2021, 06:47 AM
  2. [SOLVED] Trying to Determine Cost based on multiple variables
    By jeffamore in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-25-2020, 01:12 PM
  3. Calculate cost based on number of days within a period
    By rooboyz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2018, 09:48 PM
  4. Golf Pool Simplification/Automation: Multiple variables over extended period.
    By db_in_atlanta in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-10-2013, 10:57 AM
  5. Calculate cost with three variables
    By Keltic in forum Excel General
    Replies: 3
    Last Post: 04-22-2012, 11:17 AM
  6. calculating cost prices for a product with multiple variables
    By cbs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-02-2010, 07:36 PM
  7. Multiple independant variables in cost estimate
    By wmfinance in forum Excel General
    Replies: 2
    Last Post: 07-28-2010, 09:05 AM

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