+ Reply to Thread
Results 1 to 5 of 5

Adding arguments to an SUMPRODUCT function

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    30

    Adding arguments to an SUMPRODUCT function

    I'm using a function:

    =SUMPRODUCT(--(A2:A1500="Billy"),--(E2:E1500="1")) to calculate how many times 1 appears for the person 'Billy'

    In Column B I input an 'X' when that row is void & shouldn't be counted.

    I'm trying to add to the above function that ignores counting rows with an 'X' next to 'Billy' - just count the rows without an 'X' next to 'Billy'

    Can anyone provide info in how I'd write that into the existing function.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Adding arguments to an SUMPRODUCT function

    Try

    =SUMPRODUCT(--(A2:A1500="Billy"),--(E2:E1500="1"),--(B2:B1500<>"X"))

  3. #3
    Registered User
    Join Date
    12-19-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Adding arguments to an SUMPRODUCT function

    Thank you for your help Jonmo1 - that worked perfectly!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Adding arguments to an SUMPRODUCT function

    Glad to help, thanks for the feedback.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding arguments to an SUMPRODUCT function

    If you're using Excel 2007 or later the COUNTIFS function is more efficient than the SUMPRODUCT function.

    =COUNTIFS(A2:A1500,"Billy",B2:B1500,"<>X",E2:E1500,1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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