+ Reply to Thread
Results 1 to 5 of 5

SUMIF with greater than or equal to

  1. #1
    Registered User
    Join Date
    12-12-2011
    Location
    Philadelphia, Pa
    MS-Off Ver
    Excel 2010
    Posts
    8

    SUMIF with greater than or equal to

    Hello.....I'm wondering why this formula isn't working. I'm creating a payroll sheet and any hours over 40 I'd like to add in a seperate cell. This is what I'm trying to use to accomplish that:

    =SUMIF(B3:H3,">=-40",B4:H4)

    As I said, it's not working.

    Thanks in advance!

  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: SUMIF with greater than or equal to

    edit what am i thinking that should work as it is except why -40? and are you talking hours as in 07:00 (a real time) or 7.0 hrs
    Last edited by martindwilson; 01-10-2012 at 04:24 PM.
    "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
    12-12-2011
    Location
    Philadelphia, Pa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMIF with greater than or equal to

    B3:H3 are Monday-Sunday with values of 8.00 most of the time for each cell. If that sum (B3:H3) is over 40, I want to sum another range (B4:H4). Hope that helps, thanks!

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

    Re: SUMIF with greater than or equal to

    do you mean =if(sum(B3:H3)>40,sum(b4:h4),"") edited to add condition "" if not true else you'd get false as an answer
    Last edited by martindwilson; 01-10-2012 at 04:47 PM.

  5. #5
    Registered User
    Join Date
    12-12-2011
    Location
    Philadelphia, Pa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMIF with greater than or equal to

    I thought an IF would work better, but I couldn't get the syntax right. Works perfectly! Thank you so much!

+ 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