+ Reply to Thread
Results 1 to 8 of 8

Countif/sumif too many arguments :d

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    27

    Question Countif/sumif too many arguments :d

    =SUMIF(August!C:C,B20,August!H:H)

    So I sum the H column if the C column matches Cell b20 - but how can I tell excel to;
    sum the H column
    if both the c column matches b20 AND the H column is greater than 50?

    =SUMIF(August!C:C,B20,August!H:H,">50") <- is not working for me

    Surely there is a way around this?

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Countif/sumif too many arguments :d

    If you are using Excel 2007 or later, you can use SUMIFS,

    =SUMIFS(August!H:H,August!C:C,B20,August!H:H,">50")

    Or use SUMPRODUCT, which is compatible with ALL versions.

    =SUMPRODUCT((August!H2:H100>50)*(August!C2:C100=B20),August!H2:H100)

    Note: When use SUMPRODUCT do not use whole column reference like C:C, H:H use a limited range.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

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

    Re: Countif/sumif too many arguments :d

    since you have excel 2003 you will need to use sumproduct but you cant use whole ranges like h:h

    =sumproduct(--(August!C1:C1000=B20),--(August!h1:h1000>50),(August!h1:h1000))
    "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

  4. #4
    Registered User
    Join Date
    12-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Countif/sumif too many arguments :d

    Thank you for your time, but the following code is not working

    =SUMPRODUCT((July!C1:C1000=B20),(July!H1:H1000>50),(July!H1:H1000))
    even reverse
    =SUMPRODUCT((July!C1:C1000=B20),(July!H1:H1000),(July!H1:H1000>50))

    It is giving me a total of '0' instead of a much larger number. hmm any thoughts?

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Countif/sumif too many arguments :d

    the 2nd comma shoud be eithe * or --

    =SUMPRODUCT((July!C1:C1000=B20)*(July!H1:H1000>50),July!H1:H1000)

  6. #6
    Registered User
    Join Date
    12-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Countif/sumif too many arguments :d

    You are a champion :D!!!

  7. #7
    Registered User
    Join Date
    12-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Countif/sumif too many arguments :d

    Is there a way i can count these rows instead of summing them?
    I am trying this but to no avail:
    =SUM((COUNTIF(July!C:C,B3)*(July!C:C,>50))

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

    Re: Countif/sumif too many arguments :d

    use the sumproduct but leave of the sum range
    =SUMPRODUCT((July!C1:C1000=B3)*(July!c1:c1000>50))

+ 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. COUNTIF to many arguments
    By Nick.123 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 05-03-2011, 01:56 PM
  2. SumIf with 2 arguments
    By Snuker in forum Excel General
    Replies: 4
    Last Post: 07-18-2009, 09:52 AM
  3. Can I use two arguments for sumif?
    By ayang_008 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-05-2008, 11:40 PM
  4. [SOLVED] =COUNTIF How to if 2 or more arguments???
    By Trixie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2005, 04:06 PM
  5. countif with 3 arguments?
    By JENNYC in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-08-2005, 05:55 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