+ Reply to Thread
Results 1 to 11 of 11

Multiple Criteria's

Hybrid View

  1. #1
    Registered User
    Join Date
    11-19-2010
    Location
    USA NY
    MS-Off Ver
    Excel 2007
    Posts
    34

    Multiple Criteria's

    Hello guys-

    I have these two formulas below that I wish to add 3 criterias to…

    
    =SUMPRODUCT(--('3-Service Calculator'!$G$1:$G$10000="1-serv call"),--('3-Service Calculator'!$X$1:$X$10000=1),'3-Service Calculator'!$S$1:$S$10000)/24
    Criteria =

    G$1:$G$10000= "4-more time"
    G$1:$G$10000= "3-recall"
    G$1:$G$10000= "6-follow up"

    
    =IFERROR(AVERAGEIFS('3-Service Calculator'!$S:$S,'3-Service Calculator'!$G:$G,"1-serv call",'3-Service Calculator'!$X:$X, 1)/24,0)
    Criteria =

    G:G= "4-more time"
    G:G= "3-recall"
    G:G= "6-follow up"

    Any help will be greatly appreciated. Thanks in advance for your assistance!
    Last edited by rosarionyc; 11-24-2010 at 02:44 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple Criteria's

    You mean you want to add if G1:G10000 is either of those conditions?

    If so:

    =SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="1-serv call")+(G$1:$G$10000= "4-more time")+(G$1:$G$10000= "3-recall")+(G$1:$G$10000= "6-follow up")),--('3-Service Calculator'!$X$1:$X$10000=1),'3-Service Calculator'!$S$1:$S$10000)/24
    and

    =IFERROR((SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="1-serv call")+(G$1:$G$10000= "4-more time")+(G$1:$G$10000= "3-recall")+(G$1:$G$10000= "6-follow up")),--('3-Service Calculator'!$X$1:$X$10000=1),'3-Service Calculator'!$S$1:$S$10000)/SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="1-serv call")+(G$1:$G$10000= "4-more time")+(G$1:$G$10000= "3-recall")+(G$1:$G$10000= "6-follow up")),--('3-Service Calculator'!$X$1:$X$10000=1)))/24,0)
    Note: Countifs, Sumifs, Averageifs don't take OR condtions....
    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.

  3. #3
    Registered User
    Join Date
    11-19-2010
    Location
    USA NY
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Multiple Criteria's

    Quote Originally Posted by NBVC View Post
    You mean you want to add if G1:G10000 is either of those conditions?

    If so:

    =SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="1-serv call")+(G$1:$G$10000= "4-more time")+(G$1:$G$10000= "3-recall")+(G$1:$G$10000= "6-follow up")),--('3-Service Calculator'!$X$1:$X$10000=1),'3-Service Calculator'!$S$1:$S$10000)/24
    and

    =IFERROR((SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="1-serv call")+(G$1:$G$10000= "4-more time")+(G$1:$G$10000= "3-recall")+(G$1:$G$10000= "6-follow up")),--('3-Service Calculator'!$X$1:$X$10000=1),'3-Service Calculator'!$S$1:$S$10000)/SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="1-serv call")+(G$1:$G$10000= "4-more time")+(G$1:$G$10000= "3-recall")+(G$1:$G$10000= "6-follow up")),--('3-Service Calculator'!$X$1:$X$10000=1)))/24,0)
    Note: Countifs, Sumifs, Averageifs don't take OR condtions....
    Hello and thank you. The 1st formula seem to work but i am not yet sure of it because there is a 2nd formula in which i need to alter as well. I tried to follow the format as described in the 1st formula but i got an error messege, this is why i am posting the 2nd formula for your review. Thanks!

    
    =SUMPRODUCT(--('3-Service Calculator'!$G$1:$G$10000="7-part call"),--('3-Service Calculator'!$X$1:$X$10000=1),'3-Service Calculator'!$S$1:$S$10000)/24
    Additional Criteria =

    '3-Service Calculator'!$G$1:$G$10000="8-high part"
    Last edited by rosarionyc; 11-24-2010 at 11:51 AM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple Criteria's

    That criteria looks like the one in the formula already. Is that the right one?

  5. #5
    Registered User
    Join Date
    11-19-2010
    Location
    USA NY
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Multiple Criteria's

    Quote Originally Posted by NBVC View Post
    That criteria looks like the one in the formula already. Is that the right one?
    I adjusted it. The formula has 7-part call, the addition is 8-high part.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple Criteria's

    Try:

    =SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="7-part call")+('3-Service Calculator'!$G$1:$G$10000="8-high part")),--('3-Service Calculator'!$X$1:$X$10000=1),'3-Service Calculator'!$S$1:$S$10000)/24

  7. #7
    Registered User
    Join Date
    11-19-2010
    Location
    USA NY
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Multiple Criteria's

    Quote Originally Posted by NBVC View Post
    Try:

    =SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="7-part call")+('3-Service Calculator'!$G$1:$G$10000="8-high part")),--('3-Service Calculator'!$X$1:$X$10000=1),'3-Service Calculator'!$S$1:$S$10000)/24
    Thank you, that worked perfectly. Currently i am looking into the 2nd formula you provided me. Seems to have given me a lesser SUM than the original formula; BRB soon.

  8. #8
    Registered User
    Join Date
    11-19-2010
    Location
    USA NY
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Multiple Criteria's

    =IFERROR((SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="1-serv call")+('3-Service Calculator'!G$1:$G$10000= "4-more time")+('3-Service Calculator'!G$1:$G$10000= "3-recall")+('3-Service Calculator'!G$1:$G$10000= "6-follow up")),--('3-Service Calculator'!$X$1:$X$10000=1),'3-Service Calculator'!$S$1:$S$10000)/SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="1-serv call")+('3-Service Calculator'!G$1:$G$10000= "4-more time")+('3-Service Calculator'!G$1:$G$10000= "3-recall")+('3-Service Calculator'!G$1:$G$10000= "6-follow up")),--('3-Service Calculator'!$X$1:$X$10000=1)))/24,0)
    =IFERROR(AVERAGEIFS('3-Service Calculator'!$S:$S,'3-Service Calculator'!$G:$G,"1-serv call",'3-Service Calculator'!$X:$X, 1)/24,0)

    The formula you created is a little over my head, so I will explain the one that I have. Its reads as follows…
    Criteria
    If G:G = 3-service call < plus the additions > 3-recall, 4-more time, 6-follow up
    And
    X:X = 1
    Result
    Go to
    S:S = SUM the average/24

  9. #9
    Registered User
    Join Date
    11-19-2010
    Location
    USA NY
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Multiple Criteria's

    =IFERROR(AVERAGEIFS('3-Service Calculator'!$S:$S,'3-Service Calculator'!$G:$G,"7-part call",'3-Service Calculator'!$X:$X, 1)/24,0)
    Can you please add this criteria to this

    Criteria = '3-Service Calculator'!$G:$G,"8-high part"

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple Criteria's

    Try:

    =IFERROR((SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="7-part call")+('3-Service Calculator'!$G$1:$G$10000="8-high part")),--('3-Service Calculator'!$X$1:$X$10000=1),'3-Service Calculator'!$S$1:$S$10000)/SUMPRODUCT((('3-Service Calculator'!$G$1:$G$10000="7-part call")+('3-Service Calculator'!$G$1:$G$10000="8-high part")),--('3-Service Calculator'!$X$1:$X$10000=1)))/24,0)

    Also note, that SUMPRODUCT is less efficient than AVERAGEIFS so try to limit the range sizes to the absolute largest you will need... a range of 1:10000 may cause performance issues if you have many of them.

    Edit: You can possibly also just add 5 different AVERAGEIFS together, one for each Grange value (keeping the X and S ranges in tact in each). and then divide the entire thing by 24
    Last edited by NBVC; 11-24-2010 at 01:32 PM.

+ 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