+ Reply to Thread
Results 1 to 6 of 6

SUMPRODUCT (non-duplicative counting)

  1. #1
    Registered User
    Join Date
    10-09-2013
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    23

    SUMPRODUCT (non-duplicative counting)

    Please see attached example. I need a formula for Cell F2 that sums the number of entries in columns A, B, and C, but is not duplicative. In other words, I only want one entry in each row to count toward the sum.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: SUMPRODUCT (non-duplicative counting)

    Try this

    =SUMPRODUCT((A2:C6<>"")/COUNTIF(A2:C6,A2:C6&""))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: SUMPRODUCT (non-duplicative counting)

    Try this;


    =COUNT(A2:B6)-SUMPRODUCT((A2:A6<>"")*(B2:B6<>""))
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  4. #4
    Registered User
    Join Date
    10-09-2013
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: SUMPRODUCT (non-duplicative counting)

    Please see attached spreadsheet, instead of the original one I uploaded. I need the formulas for Cells A8:A14. Also, note that the number of rows on the second sheet could be in the hundreds (or thousands), so ideally the formulas will account for this.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-09-2013
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: SUMPRODUCT (non-duplicative counting)

    Sorry, please use this attachment.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: SUMPRODUCT (non-duplicative counting)

    Same formula? This will go to 50,000 rows.

    =COUNT('Current Quarter'!B9:C50000)-SUMPRODUCT(('Current Quarter'!B9:B50000<>"")*('Current Quarter'!C9:C50000<>""))


    Note: Merged Cells should be avoided like the plague at all times. They are horrible for writing formulas, macros, and formatting. The range B8:D8 can be unmerged, the the "A" placed in cell C8 then centered, it will look the same, but won't ruin your spreadsheet later. Just a tip!

+ 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. sumproduct not counting the way I need it to
    By Kefo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-30-2013, 10:28 AM
  2. SUMPRODUCT not counting between dates help
    By steeley7 in forum Excel General
    Replies: 1
    Last Post: 03-08-2010, 04:32 PM
  3. sumproduct not counting correctly
    By excellentexcel in forum Excel General
    Replies: 3
    Last Post: 03-08-2009, 03:55 PM
  4. Counting dates using SUMPRODUCT
    By baz0912 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-04-2008, 06:58 AM
  5. SUMPRODUCT counting 3 columns...
    By Steve-B in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-04-2008, 06:27 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