+ Reply to Thread
Results 1 to 8 of 8

COUNTIFS - To few arguments

  1. #1
    Registered User
    Join Date
    08-26-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    13

    COUNTIFS - To few arguments

    Hi I enter this statement and i keep getting there are too few arguments for this function.

    =COUNTIFS(N5,CN5,CG5,BZ5,BS5,BL5,BE5,AX5,AQ5,AJ5,AC5,V5,">=3")

    Just wondering if anyone could help me out?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: COUNTIFS - To few arguments

    Countifs is used in parameter pairs. Press F1 in Excel and read the detailed examples in the tutorial.

    =COUNTIFS(Range1, Criteria1, Range2, Criteria2, OptRange3, OptCriteria3) (etc...)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: COUNTIFS - To few arguments

    All but one of the cells referenced are 7 cells apart. So all of them can be tested using a SUMPRODUCT, then you can test the remaining cell (N5) specifically:

    =SUMPRODUCT(--(MOD(COLUMN(V5:CG5)-15,7)=0), --(V5:CG5>=3)) + --(N5>=3)

    That should give you the count you're after.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: COUNTIFS - To few arguments

    COUNTIF needs a range rather than a list of cells

    If you are only looking at 12 cells you can use this formula

    =(N5>=3)+(CN5>=3)+(CG5>=3)+(BZ5>=3)+(BS5>=3)+(BL5>=3)+(BE5>=3)+(AX5>=3)+(AQ5>=3)+(AJ5>=3)+(AC5>=3)+(V5>=3)
    Last edited by daddylonglegs; 09-02-2014 at 07:55 PM.
    Audere est facere

  5. #5
    Registered User
    Join Date
    08-26-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    13

    Re: COUNTIFS - To few arguments

    Quote Originally Posted by daddylonglegs View Post
    COUNTIF needs a range rather than a list of cells

    If you are only looking at 12 cells you can use this formula

    =(N5>=3)+(CN5>=3)+(CG5>=3)+(BZ5>=3)+(BS5>=3)+(BL5>=3)+(BE5>=3)+(AX5>=3)+(AQ5>=3)+(AJ5>=3)+(AC5>=3)+(V5>=3)
    thanks for that,

    so this sums up how many are greater than 3, but can i count the total numbers above 3??
    i.e. if 4 colums are say 5 ea they would = 20 not 4

  6. #6
    Registered User
    Join Date
    08-26-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    13

    Re: COUNTIFS - To few arguments

    Quote Originally Posted by JBeaucaire View Post
    All but one of the cells referenced are 7 cells apart. So all of them can be tested using a SUMPRODUCT, then you can test the remaining cell (N5) specifically:

    =SUMPRODUCT(--(MOD(COLUMN(V5:CG5)-15,7)=0), --(V5:CG5>=3)) + --(N5>=3)

    That should give you the count you're after.
    Thanks for this!

    how can i get the count of how many are greater than 3 not just count the column that is >3 but to sum the numbers i.e. count 3 + 4 + 3 +6 etc.

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: COUNTIFS - To few arguments

    Try this..
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    As it is an array formula so use ctrl + shift + enter to enter the formula..
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: COUNTIFS - To few arguments

    Quote Originally Posted by GSAN View Post
    Thanks for this!

    how can i get the count of how many are greater than 3 not just count the column that is >3 but to sum the numbers i.e. count 3 + 4 + 3 +6 etc.
    Like so:
    =SUMPRODUCT(--(MOD(COLUMN(V5:CG5)-15,7)=0), --(V5:CG5>=3), V5:CG5) + (N5*--(N5>=3))

+ 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. COUNTIFS OR COUNTIFS needs to work
    By joshbellfi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 10:55 AM
  2. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  3. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  4. Too Many Arguments?
    By artiststevens in forum Excel General
    Replies: 2
    Last Post: 08-13-2011, 08:15 PM
  5. Storing CountIfs arguments in an array?
    By fomoz in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-17-2011, 05:07 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