+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT Issue (Counting Blank Cells)

  1. #1
    Registered User
    Join Date
    07-09-2018
    Location
    Omaha, Nebraska
    MS-Off Ver
    2013
    Posts
    2

    Question SUMPRODUCT Issue (Counting Blank Cells)

    Greetings all! First Time poster,
    I am having an issue with a SUMPRODUCT formula to where the the outcome is counting all the blank cells. I have read through many posts about adding the same range with a (,<>"") at the end and it only produces a #VALUE error as a result. Below is my formula with an explanation of what I am trying to do.

    =IF($BA8=$A$6,SUMPRODUCT(--($K$6:$K$200=$L$6:$L$200)),0)

    I am working a Verification document for my job. We forecast weather events for aircraft and need to verify whether it is forecasted and if it occurs. These are answered with a Y or N.

    $BA8 is a name of a forecaster and need to make a true value if it is equal with the same name is $A$6.

    $K$6 is the first block with a Y or N
    $L$6 is the second block with a Y or N.

    If both of these values are equal, then I need it to get counted within the cell that I place the formula.

    Right now I got as far as a working formula but it counts all of the blanks and gives me a total of 195 after counting the entire range of cells.

    I feel that this is an easy solution but I have been attempting to comb through other posts for hours trying to piece together a working formula, to no avail.

    Any assitance is appreciated, please follow up with any questions if anything isnt clear!

    Thank you for your time!

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: SUMPRODUCT Issue (Counting Blank Cells)

    The thread that you read suggesting <>"" is on the right lines, but there are 2 ways that it can be applied in sumproduct.

    =IF($BA8=$A$6,SUMPRODUCT(($K$6:$K$200=$L$6:$L$200)*($K$6:$K$200<>"")),0)

    As an alternative, you could also use countifs to count the occurences of Y / N

    =IF($BA8=$A$6,SUM(COUNTIFS($K$6:$K$200,{"Y","N"},$L$6:$L$200,{"Y","N"})),0)

  3. #3
    Registered User
    Join Date
    07-09-2018
    Location
    Omaha, Nebraska
    MS-Off Ver
    2013
    Posts
    2

    Re: SUMPRODUCT Issue (Counting Blank Cells)

    The first one works perfectly, and thanks for the alternative option as well! I was missing the *, and was using a , instead.

    That was a big help! Thank you!

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: SUMPRODUCT Issue (Counting Blank Cells)

    It should work with comma as well, maybe you had the syntax slighlty wrong.

    =IF($BA8=$A$6,SUMPRODUCT(--($K$6:$K$200=$L$6:$L$200),--($K$6:$K$200<>"")),0)

    There are pros and cons to both methods. the Multiplier method is the most versatile, but there are occasions where the comma method is needed, the main one that comes to mind is totalling values that are in a range mixed with text.

+ 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] COUNTA, SUMPRODUCT, COUNTIF, Counting blank cells.
    By BlindAlley in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-09-2017, 11:47 AM
  2. Counting blank cells up to first non-blank cell
    By DLG3 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2015, 07:36 AM
  3. Replies: 9
    Last Post: 08-17-2015, 04:05 PM
  4. Sumproduct counting blank cells
    By raghavfastest in forum Excel General
    Replies: 3
    Last Post: 01-09-2009, 05:39 AM
  5. [SOLVED] =SUMPRODUCT formula is counting the blank cells as well as zero's
    By JR in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2006, 11:45 AM
  6. Replies: 0
    Last Post: 08-23-2005, 03:43 AM
  7. sumproduct--counting--zero--blank cells
    By jeremy via OfficeKB.com in forum Excel General
    Replies: 4
    Last Post: 08-16-2005, 11:05 AM

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