+ Reply to Thread
Results 1 to 7 of 7

Sum of count greater than X formula

  1. #1
    Registered User
    Join Date
    10-11-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    7

    Sum of count greater than X formula

    Hi,
    I'm trying to sum the total number of hours foretasted greater than a count of 12 (for weeks worked) and multiple it by an appropriate rate to forecast costs.
    For the first 1-12 weeks all staff are on a 12.54 rate per hour, >12 weeks 12.78.
    I've attached the file for reference, 55 staff beginning at different weeks throughout the year.
    Anyone help with a formula (col AK)?
    Thanks!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sum of count greater than X formula

    invisible attachment!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-11-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Sum of count greater than X formula

    should be attached now!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Sum of count greater than X formula

    Ok, you confused me...

    You can use =COUNTA(F7:AG7) to determine the count of the number of weeks that they have hours allocated.

    Are you saying that the first 12 weeks are estimated at 12.54 per hour, and that each week beyond 12 is at 12.78? Or if they are above 12 weeks, all hours become 12.78?

    If it's 12.54 for <12, and 12.78 for >12, and not a changing rate, then the equation would be:
    =SUM(F7:AG7)*IF(COUNTA(F7:AG7)>12,12.78,12.54)
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  5. #5
    Registered User
    Join Date
    10-11-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Sum of count greater than X formula

    Quote Originally Posted by Miraun View Post
    Ok, you confused me...

    You can use =COUNTA(F7:AG7) to determine the count of the number of weeks that they have hours allocated.

    Are you saying that the first 12 weeks are estimated at 12.54 per hour, and that each week beyond 12 is at 12.78? Or if they are above 12 weeks, all hours become 12.78?

    If it's 12.54 for <12, and 12.78 for >12, and not a changing rate, then the equation would be:
    =SUM(F7:AG7)*IF(COUNTA(F7:AG7)>12,12.78,12.54)
    Thanks, but I needed the first - First 12 weeks at 12.54 and thereafter 12.78.
    Any idea's on a formula for this?
    Last edited by srose; 09-01-2011 at 04:22 AM.

  6. #6
    Registered User
    Join Date
    10-11-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Sum of count greater than X formula

    Quote Originally Posted by srose View Post
    Thanks, but I needed the first - First 12 weeks at 12.54 and thereafter 12.78.
    Any idea's on a formula for this?
    Anyone help on this, working on a deadline!

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sum of count greater than X formula

    =if(c7-12>0,(c7-12)*12.78,0)+if(c7-12>0,12*12.54,0)+if(c7<=12,c7*12.54,0)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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