+ Reply to Thread
Results 1 to 5 of 5

How do I count column cells that are not blank

  1. #1
    Registered User
    Join Date
    04-30-2010
    Location
    Connecticut
    MS-Off Ver
    Excel 2007
    Posts
    6

    How do I count column cells that are not blank

    I have Excel 2007 and I would like to count cells in column that are not blank. There could be text or numbers in those cells for example below.

    ColumnA
    1233

    13265
    12365

    In this sample there is three entry and one of them is blank so I would like to return it as 1

    Thanks

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: How do I count column cells that are not blank

    you have 4 cells with data, 3 of them are not blank, how would you expect then result to be 1?

    Try

    =COUNT(ISBLANK(A:A))

    Will get the 1 Blank result
    Last edited by davesexcel; 04-30-2010 at 10:06 PM.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: How do I count column cells that are not blank

    Which is it, count blanks or non-blank?

    Blank =COUNTBLANK(A1:A4) = 1

    Non-Blank =COUNTA(A1:A4) = 3

  4. #4
    Registered User
    Join Date
    04-30-2010
    Location
    Connecticut
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How do I count column cells that are not blank

    Quote Originally Posted by jeffreybrown View Post
    Which is it, count blanks or non-blank?

    Blank =COUNTBLANK(A1:A4) = 1

    Non-Blank =COUNTA(A1:A4) = 3
    How can also add condition on another column, so I want to count the not blank when column B in red.

    ColumnA ColumnB
    12345 Red

    123654 Blue
    126333 Blue

    123655 Red
    This should return me 2 since there are two cells in column A that is not blank but also column B is red.

    Thanks

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: How do I count column cells that are not blank

    This should work...

    =COUNTIFS(A1:A6,"<>""",B1:B6,"Red")

    or

    =SUMPRODUCT(--(A1:A6<>""),--(B1:B6="Red"))

+ 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