+ Reply to Thread
Results 1 to 7 of 7

Counting of Specific range of BLANK cells

  1. #1
    Registered User
    Join Date
    04-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Counting of Specific range of BLANK cells

    Hi All,

    What I want is when cells A2 & B2 are blank, then 1 is counted in the Total Column. This is achieved in the function =COUNTBLANK(A2:B2)-1

    I then want this function to be applied to C2 & D2 and also to E2 & F2 as well.

    I do not want any count if there is data in the range of the cells nominated i.e. if data is in C2 or D2 or both, then there is to be a zero count.

    I only want to count two blank cells as 1.

    Thanks

    Ray
    Attached Files Attached Files
    Last edited by ray963; 05-22-2011 at 03:42 AM.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Counting of Specific range of BLANK cells

    Hello,

    Maybe something like this:

    Please Login or Register  to view this content.
    entered as Ctrl + Shift + Enter not Enter only.

    abousetta

  3. #3
    Registered User
    Join Date
    04-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Counting of Specific range of BLANK cells

    It still does not work.

    In this formula it enters "1" just with one box of the two being blank.

    I need both boxes to be blank before "1" is entered.

    Regards

    Ray

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Counting of Specific range of BLANK cells

    Hi,

    Are you sure you inputted the formula correctly?

    Check the attachment.

    abousetta
    Attached Files Attached Files

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Counting of Specific range of BLANK cells

    Try this in G2
    Please Login or Register  to view this content.
    [EDIT]
    @ abousetta
    Your formula is not correct, try putting a value in B2, D2, and F2.
    Last edited by Marcol; 05-22-2011 at 03:11 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Counting of Specific range of BLANK cells

    Thanks Marcol. I have modified the formula as follows:

    Please Login or Register  to view this content.
    entered as Ctrl + Shift + Enter

    The reason I went a step further was to capture truly blank cells as opposed to cells with text. I have created a sample sheet comparing the sum function and the isblank function and the sum version doesn't recognize text and therefore will still consider the cell to be blank when in fact it is not. Another possible scenario would be to use Len() function:

    Please Login or Register  to view this content.
    entered as just Enter

    I have learned that there are many ways to achieve the same intended results, but it sometimes depends on the nature of the cell contents.

    Hope this helps.

    abousetta
    Attached Files Attached Files

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Counting of Specific range of BLANK cells

    =(--sum(a2+b2=0)+(--sum(c2+d2=0))+(--sum(e2+f2=0)))
    Last edited by martindwilson; 05-22-2011 at 10:48 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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