+ Reply to Thread
Results 1 to 8 of 8

Sumif(s) top 3 value and conditional formatting

Hybrid View

  1. #1
    Registered User
    Join Date
    11-01-2018
    Location
    Mexico City
    MS-Off Ver
    2016
    Posts
    30

    Sumif(s) top 3 value and conditional formatting

    Hey,

    How can you sumifs the top 3 value for each teams and conditional formatting for each individual team?

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-15-2013
    Location
    Singapore, Melbourne
    MS-Off Ver
    Office 365
    Posts
    167

    Re: Sumif(s) top 3 value and conditional formatting

    formula for B2 in your top 3 sheet:

    =SUM(LARGE(IF(projections!$B$2:$B$92=$A2,projections!$C$2:$C$92),{1,2,3}))

    It is an array formula, fill this formula to the range [B2:B9].


    For your second question of 'formatting for each individual team', please provide details with a clear example.
    Row row row your boat
    Gently down the stream

  3. #3
    Registered User
    Join Date
    11-01-2018
    Location
    Mexico City
    MS-Off Ver
    2016
    Posts
    30

    Re: Sumif(s) top 3 value and conditional formatting

    Quote Originally Posted by Metoo7 View Post
    formula for B2 in your top 3 sheet:

    =SUM(LARGE(IF(projections!$B$2:$B$92=$A2,projections!$C$2:$C$92),{1,2,3}))

    It is an array formula, fill this formula to the range [B2:B9].


    For your second question of 'formatting for each individual team', please provide details with a clear example.
    Thanks

    In the projections sheet, I want to do conditional formatting for example: BKN (MIN-Max), then CHA (MIN-MAX), etc..

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,995

    Re: Sumif(s) top 3 value and conditional formatting

    B2=IF('top 3'!$A2<>"",SUMIFS(projections!$C$2:$C$1000,projections!$B$2:$B$1000,'top 3'!$A2,projections!$C$2:$C$1000,">="&AGGREGATE(14,6,projections!$C$2:$C$100/(projections!$B$2:$B$1000='top 3'!$A2),3)),"")

    Copy down

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,995

    Re: Sumif(s) top 3 value and conditional formatting

    =AND($C2=AGGREGATE(14,6,$C$2:$C$1000/($B$2:$B$1000=$B2),1),$C2<>"") green MAX

    =AND($C2=AGGREGATE(15,6,$C$2:$C$1000/($B$2:$B$1000=$B2),1),$C2<>"") red MIN

    applies to =$A$2:$C$1000

    top 3


    B2=IF('top 3'!$A2<>"",SUMIFS(projections!$C$2:$C$1000,projections!$B$2:$B$1000,'top 3'!$A2,projections!$C$2:$C$1000,">="&AGGREGATE(14,6,projections!$C$2:$C$100/(projections!$B$2:$B$1000='top 3'!$A2),3)),"")

    Copy down
    Attached Files Attached Files
    Last edited by CARACALLA; 10-30-2021 at 12:14 PM.

  6. #6
    Registered User
    Join Date
    11-01-2018
    Location
    Mexico City
    MS-Off Ver
    2016
    Posts
    30

    Re: Sumif(s) top 3 value and conditional formatting

    Thanks CARACALLA and Metoo7.

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,995

    Re: Sumif(s) top 3 value and conditional formatting

    You are welcome

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,920

    Re: Sumif(s) top 3 value and conditional formatting

    worksheet name : top 3

    Cell B2 formula , Drag down

    Formula: copy to clipboard
    =SUMPRODUCT(SUMIFS(projections!$C:$C,projections!$B:$B,$A2,projections!$C:$C,">="&LARGE((projections!$B$2:$B$92=$A2)*(projections!$C$2:$C$92),3)))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to use SUMIF when using Conditional Formatting
    By Fugdkn in forum Excel General
    Replies: 11
    Last Post: 08-02-2020, 02:12 AM
  2. Help with slow worksheet (conditional formatting & sumif formulas)
    By LordClick in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2017, 01:44 AM
  3. Sumif and Conditional Formatting
    By kgkgkg9009 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-25-2017, 07:59 PM
  4. Conditional Formatting Formula IF or SUMIF
    By Lawman1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-06-2017, 10:14 AM
  5. [SOLVED] Conditional Formatting Formula - if(and(sumif.....
    By mmaya4 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-23-2014, 02:47 AM
  6. [SOLVED] sumif with conditional formatting
    By msmathad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2013, 02:16 PM
  7. [SOLVED] Countif or Sumif based on Conditional Formatting Color
    By Kune in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 6
    Last Post: 10-07-2012, 08:47 AM

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