+ Reply to Thread
Results 1 to 14 of 14

Showing maximum count text only

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Showing maximum count text only

    Hi,

    I have enclosed one file where could you please let me know name of person who has won maximum games by formula only ?


    Year Winner in Games
    2002 Mark
    2003 Tom
    2004 Arthur
    2005 james
    2006 Mark
    2007 james
    2008 Mark
    2009 james
    2010 Mark
    2011 Mark
    2012 Mark
    2015 Mark


    Thanks
    Vijay
    Attached Files Attached Files
    Click on (*), if you agree.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Showing maximum count text only

    =LOOKUP(2,1/(MAX(INDEX(COUNTIFS(B5:B16,B5:B16),0))=INDEX(COUNTIFS(B5:B16,B5:B16),0)),B5:B16)
    Please Login or Register  to view this content.
    try this formula
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Showing maximum count text only

    with a helpcolumn and a pivot table.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    07-01-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Showing maximum count text only

    hi..

    please check below array formula :
    {=LOOKUP(MAX(COUNTIF($B$5:$B$16,$B$5:$B$16)),COUNTIF($B$5:$B$16,$B$5:$B$16),$B$5:$B$16)}

    or non array formula
    =LOOKUP(MAX(INDEX(COUNTIF($B$5:$B$16,$B$5:$B$16),,)),COUNTIF($B$5:$B$16,$B$5:$B$16),$B$5:$B$16)

    Best Regards,
    JRD

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Showing maximum count text only

    Quote Originally Posted by JR DHONA View Post
    hi..

    please check below array formula :
    {=LOOKUP(MAX(COUNTIF($B$5:$B$16,$B$5:$B$16)),COUNTIF($B$5:$B$16,$B$5:$B$16),$B$5:$B$16)}

    or non array formula
    =LOOKUP(MAX(INDEX(COUNTIF($B$5:$B$16,$B$5:$B$16),,)),COUNTIF($B$5:$B$16,$B$5:$B$16),$B$5:$B$16)

    Best Regards,
    JRD
    I think in Lookup formula the values in Lookup vector must be in Ascending Order

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Showing maximum count text only

    Another way:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Comfirmed with ctrl+shift+enter (not just enter)

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Showing maximum count text only

    Quote Originally Posted by zbor View Post
    Another way:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Comfirmed with ctrl+shift+enter (not just enter)
    I think no need to Comfirm with ctrl+shift+enter it is working as same as array formula

  8. #8
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Showing maximum count text only

    Thanks lot but i need second highest person name then !!

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Showing maximum count text only

    Use Pivot Table

  10. #10
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Showing maximum count text only

    Can it be done by formulas .

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Showing maximum count text only

    First:
    =INDEX(B5:B16,MODE(IF(B5:B16<>"",MATCH(B5:B16,B5:B16,0)))) as suggested above...

    Second:
    =INDEX(B5:B16,MODE(IF((B5:B16<>"")*(B5:B16<>INDEX(B5:B16,MODE(IF(B5:B16<>"",MATCH(B5:B16,B5:B16,0))))),MATCH(B5:B16,B5:B16,0))))

    Both are array formulae.

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Showing maximum count text only

    and... (before you ask)...

    Third:
    =INDEX(B5:B16,MODE(IF(((B5:B16<>"")*(B5:B16<>INDEX(B5:B16,MODE(IF(B5:B16<>"",MATCH(B5:B16,B5:B16,0)))))*(B5:B16<>INDEX(B5:B16,MODE(IF((B5:B16<>"")*(B5:B16<>INDEX(B5:B16,MODE(IF(B5:B16<>"",MATCH(B5:B16,B5:B16,0))))),MATCH(B5:B16,B5:B16,0)))))),MATCH(B5:B16,B5:B16,0))))

  13. #13
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Showing maximum count text only

    or try below array formula Inspired by Glenn kennedy
    E5
    Please Login or Register  to view this content.
    E6
    Please Login or Register  to view this content.
    Copy E6 and copy towards down

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Showing maximum count text only

    Forget my last effort. Try this (it will also work for fourth place, at which point nflsales' formula seems to fail).
    First:
    IFERROR(INDEX(B5:B16,MODE(MATCH(B5:B16,B5:B16,0)+{0,0})),"")

    The rest (copied down):
    IFERROR(INDEX($B$5:$B$16,MODE(IF(COUNTIF($D$5:D5,$B$5:$B$16)=0,MATCH($B$5:$B$16,$B$5:$B$16,0)+{0,0}))),"")

    All array formulae.
    Attached Files Attached Files

+ 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. IFERROR Function and Maximum Character Count
    By jbarc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2015, 11:19 AM
  2. Replies: 5
    Last Post: 03-23-2015, 07:06 AM
  3. [SOLVED] sorting by maximum value and displaying a corresponding text with the maximum value
    By ScottBeatty in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-20-2013, 03:11 PM
  4. [SOLVED] count the maximum number consecutive
    By Berna11 in forum Excel General
    Replies: 9
    Last Post: 07-13-2012, 11:27 AM
  5. Count the maximum consecutive TRUEs
    By tomgilb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2011, 12:23 AM
  6. Replies: 3
    Last Post: 08-19-2011, 10:32 AM
  7. [SOLVED] Maximum Row Count
    By Mike Labosh in forum Excel General
    Replies: 4
    Last Post: 01-04-2005, 01:06 PM

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