+ Reply to Thread
Results 1 to 4 of 4

Sumifs or Array to calculate Total Cost Per Week

  1. #1
    Registered User
    Join Date
    07-11-2017
    Location
    Houston, TX
    MS-Off Ver
    Office 365
    Posts
    2

    Sumifs or Array to calculate Total Cost Per Week

    Hi Y'all, I hope you had a good weekend.

    I'm trying to calculate the total cost of each individual per week. I feel a SumProduct should do the trick, but I've not managed to get the correct formula.

    Could you please take a look at the attachment and assist me?

    Thank you so much for your help!
    Attached Files Attached Files

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

    Re: Sumifs or Array to calculate Total Cost Per Week

    Your existing calculations are not all correct. In E15 you are paying ST for all 41 hours then paying OT on 1 hour. ST should just be 40 hours.

    I have put in a formula that calculates ST and OT for the week based on the date, and filled right. SUMPRODUCT does not come into play.

    =MIN(SUMIFS(4:4,$3:$3,">"&(E$11-7),$3:$3,"<="&E$11),40)*$C12+MAX(0,SUMIFS(4:4,$3:$3,">"&(E$11-7),$3:$3,"<="&E$11)-40)*$D12

    This first multiplies the ST rate times hours up to 40. Then it adds hours over 40, if any, times the OT rate.

    Edit: The SUMIFS will sum the hours for all dates from after end-of-week date minus 7 (which is the first day of the week) up to the end-of-week date.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    07-11-2017
    Location
    Houston, TX
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Sumifs or Array to calculate Total Cost Per Week

    I sincerely appreciate this. I've been working on it for days now (one way/formula or another) and you've put it together. Thank you.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: Sumifs or Array to calculate Total Cost Per Week

    You're welcome! Please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon below their name.

+ 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] Calculate cost per week for project
    By kingcordova in forum Excel General
    Replies: 6
    Last Post: 04-09-2019, 07:50 AM
  2. [SOLVED] Calculate Total Cost of value associated with a word
    By Chasermelb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-19-2016, 05:28 AM
  3. [SOLVED] Rate changes after 40 hours and need to calculate total cost?
    By y_not in forum Excel General
    Replies: 12
    Last Post: 10-06-2015, 12:16 PM
  4. Auto-calculate the total cost to a certain date
    By victoriajane in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-07-2015, 12:46 PM
  5. [SOLVED] Formula to calculate a cost per day until total
    By Reno Nex in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2014, 11:16 AM
  6. Replies: 1
    Last Post: 05-15-2013, 08:40 PM
  7. Replies: 1
    Last Post: 07-06-2011, 10:53 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