+ Reply to Thread
Results 1 to 7 of 7

Use COUNTIF() to find the number of cells not equal to a blank space

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Use COUNTIF() to find the number of cells not equal to a blank space

    Hi, I used the formula as:

    =COUNTIF(A1:A1000, "<>" ""), but this resulted in a error.

    Basically, in cells A1:A1000, some cells have one blank space" ".

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,055

    Re: Use COUNTIF() to find the number of cells not equal to a blank space

    So what are you trying to do? Count cells with one space?

    use =COUNTIF(A1:A1000," ")
    Never use Merged Cells in Excel

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: Use COUNTIF() to find the number of cells not equal to a blank space

    Quote Originally Posted by zbor View Post
    So what are you trying to do? Count cells with one space?

    use =COUNTIF(A1:A1000," ")
    Sorry, actually count cells without one space Most of the cells have proper strings, but some cells only have one spaces " "

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,622

    Re: Use COUNTIF() to find the number of cells not equal to a blank space

    There is also a COUNTBLANK function available

  5. #5
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: Use COUNTIF() to find the number of cells not equal to a blank space

    Hi
    Use COUANTA(A1:A1000)
    Counts number of cells that are not empty

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,622

    Re: Use COUNTIF() to find the number of cells not equal to a blank space

    Quote Originally Posted by eisayew View Post
    Hi
    Use COUANTA(A1:A1000)
    Counts number of cells that are not empty
    Slight typo, eisayew means COUNTA

  7. #7
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: Use COUNTIF() to find the number of cells not equal to a blank space

    Yes, I mean COUNTA()
    Thank you Pepe Le Mokko
    Sorry everybody

+ 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