+ Reply to Thread
Results 1 to 7 of 7

Countif

  1. #1
    Registered User
    Join Date
    08-19-2004
    Posts
    60

    Countif

    Hi,

    I have a list of formulas in column B which product a blank value i.e. =IF(A1=1,"",1) etc

    I want to count the number of non-blank cells however the following formula does no work: =COUNTIF(B:B,"<>"&"") or any similar variation of it.

    The only way i can get around this is do : =65536-COUNTIF(B:B,"")

    However i know this is only a workaround and not the real solution though!!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you really have numbers and blanks in that column, then perhaps Count() would work.

    =Count(B:B)
    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 Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    for text: =countif(b:b,"*?")

  4. #4
    Registered User
    Join Date
    08-19-2004
    Posts
    60
    [QUOTE=jamesryan;2023940]
    I have a list of formulas in column B which product a blank value i.e. =IF(A1=1,"","WRONG") etc
    QUOTE]

    Sorry for the confusion but i typed the formula wrong in the initial post, if the formula does not produce a blank ("") then it produces some text instead to the count function would not work.

  5. #5
    Registered User
    Join Date
    08-19-2004
    Posts
    60
    thanks DonkeyOte, works perfect!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Then try DonkeyOte's method.

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    in truth the wildcard isn't necessary (doh)

    =COUNTIF(B:B,"?")

+ 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