+ Reply to Thread
Results 1 to 9 of 9

Find the MODE of a column

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    3

    Find the MODE of a column

    Hi All,

    Just joined the forums yesterday, and I was wondering if you guys could help me out with a couple of questions on Excel 2010....

    1) Is it possible to find the MODE value from a column of text?
    2) With regards to the above, can I find the top 5 values within a column?

    Any help you could provide would be greatly appreciated.

    Many thanks in advance

    Cheers

    Jason

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Find the MODE of a column

    Use these array formula

    C1:=INDEX(A2:A20,MODE(MATCH(A2:A20,A2:A20,0)))
    C2: =INDEX($A$2:$A$20,MODE(IF(COUNTIF(F$1:F1,$A$2:$A$20)=0,MATCH($A$2:$A$20,$A$2:$A$20,0))))

    copy C2 down to C5

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find the MODE of a column

    You could use a PIVOT TABLE on that column of values and set the table to provide a COUNT.

    Example: http://screencast.com/t/utOKgOveCQ
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find the MODE of a column

    Good morning.

    @ Bob

    In c2>=INDEX($A$2:$A$20,MODE(IF(COUNTIF(c$1:c1,$A$2:$A$20)=0,MATCH($A$2:$A$20,$A$2:$A$20,0)))) ??

    Nice work!
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    10-03-2012
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Find the MODE of a column

    Thanks for that Bob, C1 worked a treat!

    C2 however no joy. I'll bullet point a little more detail. The cells I am basing this on range from C3:C80, so I changed the formulae in C1 to reflect this, works fine. I believe I changed the correct cells in C2 as well, but not being a pro with Excel, I could have this wrong...!

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find the MODE of a column

    So use first Bob's formula in d1 and this one to d2 and copy down,as you want.

    =IFERROR(INDEX($c$3:$c$80,MODE(IF(COUNTIF(d$1:d1,$c$3:$c$80)=0,MATCH($c$3:$c$80,$c$3:$c$80,0))));"")

    Array Formula.(control+Shift+enter)

  7. #7
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Find the MODE of a column

    Also consider that text items occurring only once, will not be picked up by the Mode function, see attachment.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-03-2012
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Find the MODE of a column

    That worked perfectly guys, thanks for the help!

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find the MODE of a column

    I have marked this thread solved for you.
    In the future please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ 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