+ Reply to Thread
Results 1 to 2 of 2

Using SUMPRODUCT to count multiple criteria ignoring blank cells

  1. #1
    Registered User
    Join Date
    08-10-2020
    Location
    Miami, FL
    MS-Off Ver
    Office 365
    Posts
    1

    Question Using SUMPRODUCT to count multiple criteria ignoring blank cells

    Hello Excel Experts,
    This is my first time posting a situation in this forum and I appreciate any feedback or direction to the solution that you can provide.
    I have attached a spreadsheet where I'm counting subscriptions with certain conditions. Where I am running into trouble is trying to count cancelled subscriptions that occur in the free trial period.
    Some things to note: (1) there are 4 types of product plans; (2) a restored user is one that does not have a free trial period or one where the contract effective = service activation; (3) cancellations may occur after the free trial period and still be considered cancelled, but I only want to count cancellations during the free trial period or up to 3 days after the service activation date. (4) The system data exports columns A through G and columns H and I are my sanity checks to check my work.

    This is the formula that is troubling me:
    =SUMPRODUCT((Data!$G:$G=Summary!$A$2)*(Data!$C:$C=$B2)*(Data!$E:$E<>Data!$F:$F)*(Data!$D:$D+0<=Data!$F:$F+3))

    It's the last portion "(Data!$D:$D+0<=Data!$F:$F+3)" that I cannot get right. I get a #VALUE! error because there are blanks in column D and have tried workarounds in researching this. Perhaps I also need to add the condition of whether it is cancelled or not.

    I also know that I should set limits to the data table rather than leaving full columns to be calculated, but I know that one day to the next the amount of rows will increase. Any other advice to handle this would help as well.
    Attached Files Attached Files

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Using SUMPRODUCT to count multiple criteria ignoring blank cells

    Hi and Welcome,
    Not sure what the outcome should be but I wonder if something like this might assist. it uses a zero when a error is found. Depending on your expected outcome a 1 may be more appropriate.

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

+ 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. Replies: 2
    Last Post: 03-03-2018, 05:00 AM
  2. [SOLVED] How to count all of duplicate value by ignoring blank cells?
    By putritersenyum in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-30-2017, 12:31 PM
  3. Sumproduct with multiple criteria and ignoring text values
    By soapy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-19-2014, 10:50 AM
  4. Sumproduct Average ignoring blank cells
    By fgruhlke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2014, 12:32 PM
  5. Count how often value changes in a column, ignoring blank cells
    By flyaway in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2014, 04:09 AM
  6. Replies: 5
    Last Post: 02-04-2013, 05:32 PM
  7. [SOLVED] How to count cell value with multiple criteria while ignoring duplicate
    By jomi9501 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-17-2012, 12:23 AM

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