+ Reply to Thread
Results 1 to 4 of 4

sumproduct additional information for adding another criteria

  1. #1
    Registered User
    Join Date
    03-09-2007
    Posts
    51

    sumproduct additional information for adding another criteria

    =SUMPRODUCT(--(H17:H1204=M1),--(J17:J1204<>"Paid Account"))

    The above formula was given to me earlier and works perfectly, however I now need to add another criteria to it. At the minute it is counting the number of sales within the given data range aslong as the data contained matches that of cell 'M1' but not if the phrase "paid account" is displayed in the data range of column 'J'.

    I also want now for it NOT TO add up the sales if there is a blank within the corresponding cells of the data range B17:B1204 aswell.

    If anyone can provide this formula it would be appreciated and also explain why dashes and brackets are used so then I might be able to learn why the given formula works.

    Many thanks in advance.

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Try this, and let me know if it works:

    =SUMPRODUCT(--(H17:H1204=M1),--(J17:J1204<>"Paid Account"),--(B17:B1204<>""))

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Just add the criteria in the same pattern....

    =SUMPRODUCT(--(H17:H1204=M1),--(J17:J1204<>"Paid Account"),--(B17:B1204<>""))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    03-09-2007
    Posts
    51
    Yea that works fine. Thanks.

    I didn't realise you can just keep adding arrays and the number of brackets contained remains the same.

+ 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