+ Reply to Thread
Results 1 to 5 of 5

Count with and function

Hybrid View

  1. #1
    Registered User
    Join Date
    12-05-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    2

    Count with and function

    Hi,
    I've Date in A1 to A20 Cell Range , Names in B1 to B20 Cell and Amount in C1 to C20

    I have to count no of names who don't have date AND whose names >0
    secondly sum(Amount) who meet this criteria

    for that I tried this
    =COUNTIF(A1:A20,"",B1:B20,"*")
    But it says you have entered too many arguments for this function
    How to do this?

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Count with and function

    Try changing "COUNTIF" to "COUNTIFS"

    Alf

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count with and function

    What does "whose names >0" mean?

    Does that mean if the corresponding cell in column C is >0?

    You aren't testing that condition in your formula.

    If you're using Excel 2007 or later you need to use the COUNTIFS/SUMIFS functions.

    Here's your current formula in the COUNTIFS function:

    =COUNTIFS(A1:A20,"",B1:B20,"*")

    It means:

    Count the cells in A1:A20 that are blank AND the corresponding cells in B1:B20 if they contain any TEXT value.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    12-05-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    2

    Re: Count with and function

    Hello Tony,
    Yes it works now. But how to make a sum of C Row with this criteria

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,767

    Re: Count with and function

    Use SUMIFS function

    =SUMIFS(C1:C20,A1:A20,"",B1:B20,"*")

+ 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. How to count text entered with ALT+ENTER using a count function
    By bethy1234 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-29-2015, 02:41 PM
  2. [SOLVED] COUNT function does not count values beginning with text
    By PeteABC123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2013, 06:38 PM
  3. [SOLVED] Count If Function To Count Frequency Of Long Numbers
    By RowanB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2013, 05:18 AM
  4. Using the COUNT function to count letters generated by an IF function
    By SMErickson7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-28-2013, 12:02 PM
  5. Replies: 2
    Last Post: 06-23-2009, 11:16 AM
  6. Count Formula-Would this be a good example to use the count function?
    By JK1234 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-01-2008, 02:44 PM
  7. Count If-How can I use the COUNTIF function to count
    By calli in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-28-2008, 05:34 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