+ Reply to Thread
Results 1 to 5 of 5

Conditional count blank cells formula

  1. #1
    Registered User
    Join Date
    05-26-2017
    Location
    Melbourne, Australia
    MS-Off Ver
    2013
    Posts
    2

    Conditional count blank cells formula

    Hi, first time posting - hoping you can help as struggling to find the answer. I have a report which is pulled from a database compiled by a wide range of staff. One of the questions is a simple 'Yes/ No' drop down but is not a required field. For a variety of reasons it is difficult to make it required and I'm loathe to anyway if there is an alternative.

    The data is pulled into Excel and for the field in question shows either "Y", "N" or a blank if it wasn't answered. I have a separate table which provides a summary of the responses in that column and would like to group the blanks and N's however I'm struggling to get a countif to pick up the blanks. It basically needs to count blank cells in column B where column A is not blank. I've tried using countblank but that would require the formula being updated regularly to cover only those rows with data (there are only between 500-2000 rows).

    Hope this makes sense, any ideas appreciated.

  2. #2
    Registered User
    Join Date
    05-23-2017
    Location
    Munich
    MS-Off Ver
    xl2010, xl2013, xl2016
    Posts
    5

    Re: Conditional count blank cells formula

    Hi,

    you could try =SUMPRODUCT((A2:A10<>"")*(B2:B10=""))

    regards
    Michael

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Conditional count blank cells formula

    Hi Jimbo- try this. The idea: use a required column as a check. Only count blanks if required column is NOT blank.
    =SUMPRODUCT(ISBLANK(E1:E15)*(NOT(ISBLANK(F1:F15))))

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 05-26-2017 at 03:02 AM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Conditional count blank cells formula

    Maybe this?
    J
    K
    L
    1
    y y
    2
    2
    n n
    3
    y
    4
    n y
    5
    y n

    L1=COUNTIFS(J1:J5,"<>",K1:K5,{"N",""})
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    05-26-2017
    Location
    Melbourne, Australia
    MS-Off Ver
    2013
    Posts
    2

    Re: Conditional count blank cells formula

    Thanks all. Would've liked to have used countifs as it's consistent with the other formulae in the spread sheet but it won't pick up the blanks for some reason.

    The sumproduct worked a treat though - hadn't used it before - thanks for the help!
    Jimbo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] how to count cells with values but ignore blank cells with formula and in a month?
    By Imran Magsi in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-17-2017, 03:58 AM
  2. How to count blank cells and conditional format?
    By jgomez in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-05-2016, 01:56 PM
  3. Count blank cells by colour based on conditional formatting
    By mb0202 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2013, 07:37 AM
  4. [SOLVED] How to count blank cells that contain formula?
    By IntricateFool in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-21-2013, 09:33 PM
  5. How can I count conditional blank cells?
    By Bruce Henson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-29-2006, 11:10 AM
  6. [SOLVED] how can I count blank cells as a zero, when using formula please??
    By Ted in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-22-2005, 02:15 PM
  7. formula to count cells not blanK
    By pmarques in forum Excel Formulas & Functions
    Replies: 52
    Last Post: 09-06-2005, 07:05 PM

Tags for this Thread

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