Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Exclude some records from a SUMPRODUCT ranking formula

  1. #11
    MrExcel MVP
    Moderator
    Peter_SSs's Avatar
    Join Date
    May 2005
    Location
    Macksville, Australia
    Posts
    41,378
    Post Thanks / Like
    Mentioned
    100 Post(s)
    Tagged
    21 Thread(s)

    Default Re: Exclude some records from a SUMPRODUCT ranking formula

    OK, thanks. What about row 7 then?
    That target is also 5 (like row 10) but orders are -5. Doesn't that make that row rank even worse than row 10?
    Hope this helps, good luck.
    Peter
    Excel 365 - Windows 10
    - Want to help your helpers by posting a small, copyable, screen shot directly in your post? Look here
    - If posting vba code, please use Code Tags - like this [code]Paste code here[/code] - or use the # key in the Reply window
    - Read: Forum Rules, Forum Use Guidelines, & FAQ

  2. #12
    New Member
    Join Date
    Nov 2008
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Exclude some records from a SUMPRODUCT ranking formula

    Yes, correct, sorry I missed that one.

  3. #13
    MrExcel MVP
    Moderator
    Peter_SSs's Avatar
    Join Date
    May 2005
    Location
    Macksville, Australia
    Posts
    41,378
    Post Thanks / Like
    Mentioned
    100 Post(s)
    Tagged
    21 Thread(s)

    Default Re: Exclude some records from a SUMPRODUCT ranking formula

    Quote Originally Posted by vegasbaby207 View Post
    Yes, correct, sorry I missed that one.
    OK, how does this go then?

    Rank Excluding Some (2)

    ABCDEF
    1RepGroupAchievedTargetThisPeriodOrdersThisPeriodRankingsASCRankingsDESC
    2A1.3333369256814
    3A0.8571470797623
    4B7.35004E-06054
    5A8.80655E-06034
    6B0.50000981610531
    7A-0.9999926075-561
    8B1.078955195384113
    9A9.63551E-06003
    10A8.33662E-065052
    11B0.900009932201822

    Spreadsheet Formulas
    CellFormula
    B2=IFERROR([@OrdersThisPeriod]/[@TargetThisPeriod],0)+(RAND()/100000)
    E2=SUMPRODUCT(--([RepGroup]=[@RepGroup]),--([@Achieved]<[Achieved]))+1
    F2=IF([@TargetThisPeriod]=0,"",SUMPRODUCT(--([RepGroup]=[@RepGroup]),--([@Achieved]>[Achieved]))+1-COUNTIFS([RepGroup],[@RepGroup],[TargetThisPeriod],0,[Achieved],"<"&[@Achieved]))


    Excel tables to the web >> Excel Jeanie HTML 4
    Hope this helps, good luck.
    Peter
    Excel 365 - Windows 10
    - Want to help your helpers by posting a small, copyable, screen shot directly in your post? Look here
    - If posting vba code, please use Code Tags - like this [code]Paste code here[/code] - or use the # key in the Reply window
    - Read: Forum Rules, Forum Use Guidelines, & FAQ

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •