+ Reply to Thread
Results 1 to 4 of 4

Why does =countif(range,"<>""") count empty cells?

  1. #1
    Registered User
    Join Date
    12-18-2003
    Location
    Missouri
    Posts
    62

    Why does =countif(range,"<>""") count empty cells?

    I am trying to count how many cells in a single column range contain data (text), but none of the following work:

    =countif(b7:b17,"<>""")
    =countif(b7:b17,">0")

    Or count the ones that are empty:
    =countif(b7:b17,"=""")
    =countif(b7:b17,c1) [where C1 is empty]

    What gets me is that I am 99% sure I have done this before!

    Thanks!

    Alex

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902
    How about:

    =Counta(b7:b17)

    and

    =Countblank(B7:B17)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,279
    counta would count non-blank cells
    =COUNTA(A1:A5)
    this counts cells with a value
    =COUNT(A1:A6)

  4. #4
    Registered User
    Join Date
    12-18-2003
    Location
    Missouri
    Posts
    62
    =COUNTA(Range) is just what I needed!!!



    Thank you!

    Alex

+ 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