+ Reply to Thread
Results 1 to 4 of 4

Sumproduct Formula - How Do I Exclude Values

  1. #1
    Registered User
    Join Date
    04-03-2007
    Posts
    39

    Sumproduct Formula - How Do I Exclude Values

    I've used the sumproduct formula very sucessfully in a workbook. The workbook is used to monitor discrepancies routed to other departments. Column U has the status of the discrepancy (Open, Closed, Cancelled etc). The below formula returns the number of discrepancies raised to a particular department. Now I need to tweak the formula to exclude values "Cancelled" found in range $U$119:$U:417.

    =SUMPRODUCT(--(Register!$I$119:$I$417=$A4),--(Register!$C$119:$C$417=B$2),--(Register!$B$119:$B$417))

    Can anyone advise how I do this please?
    Last edited by winnie_shrub; 04-14-2009 at 06:32 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sumproduct Formula - How Do I Exclude Values

    Simply add another condition:

    =SUMPRODUCT(--(Register!$I$119:$I$417=$A4),--(Register!$C$119:$C$417=B$2),--(Register!$U$119:$U$417<>"Cancelled"),Register!$B$119:$B$417)

    Also if the last range are numeric values you don't need to coerce with double unary.

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Sumproduct Formula - How Do I Exclude Values

    Good morning winnie_shrub

    Just insert it as an extra condition into your formula - untested, but something like this should work fine :

    =SUMPRODUCT(--(Register!$I$119:$I$417=$A4),--(Register!$C$119:$C$417=B$2),--(Register!$U$119:$U$417<>"Cancelled"),--(Register!$B$119:$B$417))

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Registered User
    Join Date
    04-03-2007
    Posts
    39

    Re: Sumproduct Formula - How Do I Exclude Values

    Thanks guys.

    I didn't realise <> indicates does not equal. Formula amended and working as expected.

    Will remember that in future

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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