+ Reply to Thread
Results 1 to 5 of 5

Count using sumproduct (but need to exclude certain data)

  1. #1
    Registered User
    Join Date
    11-18-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Count using sumproduct (but need to exclude certain data)

    Hi,

    I am trying to exclude unusable data from my analysis. I have flagged data in the flag column on sheet 1 by a "1". A "0" is good data. On sheet 2, I have counts for the amounts of a certain code per partner. I used a sumproduct formula for the counts, but now I want to exclude all data with a flag "1". How could I do this?

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count using sumproduct (but need to exclude certain data)

    Just add another element.

    e.g.

    (Sheet1!$A$2:$A$8<>1)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-18-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Count using sumproduct (but need to exclude certain data)

    Hmmm i am getting all 0's for the counts now when the data doesn't show that...

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Count using sumproduct (but need to exclude certain data)

    Which formula did you use? This works for me in B3 copied down

    =SUMPRODUCT((Sheet1!$F$2:$F$8=B$1)*(Sheet1!$C$2:$E$8=$A3)*(Sheet1!$A$2:$A$8=0))

    revise other formulas in the same way
    Audere est facere

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count using sumproduct (but need to exclude certain data)

    Isn't this the same problem that you posted before? http://www.excelforum.com/excel-formulas-and-functions/969348-count-multiple-index-matches.html#post3499736 Here is a copy of your workbook with one formula using the data flagged as 0 and another formula that subtracts the data flagged as 1. Both give the same results.
    Last edited by newdoverman; 12-04-2013 at 09:03 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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 to exclude values?
    By tangcla in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2020, 09:16 AM
  2. Replies: 8
    Last Post: 05-14-2012, 02:44 PM
  3. Counting data in non blank cells and exclude certain data from the count
    By JohnG73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-04-2007, 04:08 PM
  4. exclude =today() in =sumproduct
    By jonasmacs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-29-2006, 04:59 AM
  5. [SOLVED] exclude data from count
    By wdama13 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2005, 12:05 PM

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