+ Reply to Thread
Results 1 to 27 of 27

How to find most and second most common entry from alpha list

Hybrid View

Joah How to find most and second... 06-19-2012, 03:39 PM
tigeravatar Re: How to find most and... 06-19-2012, 03:57 PM
Joah Re: How to find most and... 06-19-2012, 05:05 PM
Joah Re: How to find most and... 06-19-2012, 05:15 PM
Joah Re: How to find most and... 06-19-2012, 05:16 PM
Joah Re: How to find most and... 06-19-2012, 04:57 PM
tigeravatar Re: How to find most and... 06-19-2012, 05:01 PM
Joah Re: How to find most and... 06-19-2012, 05:04 PM
Paul Re: How to find most and... 06-19-2012, 05:04 PM
tigeravatar Re: How to find most and... 06-19-2012, 05:12 PM
Joah Re: How to find most and... 06-19-2012, 05:14 PM
tigeravatar Re: How to find most and... 06-19-2012, 05:20 PM
Joah Re: How to find most and... 06-19-2012, 05:31 PM
Joah Re: How to find most and... 06-19-2012, 05:27 PM
Joah Re: How to find most and... 06-19-2012, 05:40 PM
tigeravatar Re: How to find most and... 06-19-2012, 05:45 PM
tigeravatar Re: How to find most and... 06-19-2012, 06:01 PM
Joah Re: How to find most and... 06-19-2012, 07:14 PM
Joah Re: How to find most and... 06-19-2012, 07:15 PM
Joah Re: How to find most and... 06-19-2012, 07:16 PM
Joah Re: How to find most and... 06-19-2012, 07:19 PM
Joah Re: How to find most and... 06-19-2012, 07:23 PM
Joah Re: How to find most and... 06-19-2012, 07:26 PM
Joah Re: How to find most and... 06-19-2012, 07:18 PM
Joah Re: How to find most and... 06-19-2012, 10:00 PM
Haseeb Avarakkan Re: How to find most and... 06-19-2012, 11:07 PM
Joah Re: How to find most and... 06-19-2012, 11:31 PM
  1. #1
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: How to find most and second most common entry from alpha list

    Joah,

    Ah, I see. Attached is version 2, with corrected formulas for both methods to prevent that when there are exactly the same number of an entry.

    Method 1 (no values), in cell D3 and copied down:
    =INDEX($A$3:$A$8,MATCH(1,INDEX((COUNTIF($A$3:$A$8,$A$3:$A$8)=LARGE(INDEX(COUNTIF($A$3:$A$8,$A$3:$A$8),),1+SUMPRODUCT(COUNTIF($A$3:$A$8,$D$2:D2))))*(COUNTIF($D$2:D2,$A$3:$A$8)=0),),0))
    Method 2 (with values), in cell J3 and copied down:
    =INDEX($F$3:$F$8,MATCH(1,INDEX((SUMIF($F$3:$F$8,$F$3:$F$8,$G$3:$G$8)=LARGE(INDEX(SUMIF($F$3:$F$8,$F$3:$F$8,$G$3:$G$8),),1+SUMPRODUCT(COUNTIF($F$3:$F$8,$J$2:J2))))*(COUNTIF($J$2:J2,$F$3:$F$8)=0),),0))

    The reference to $d$2:d2 is there to advance to the next nth item in the list. It doesn't have to be a blank cell in D2, it could be a header, or any text you'd like. The reference grows as the formula is copied down. So in cell D4, that reference becomes $d$2:d3. Again, this is solely to advance to the next nth item.
    Attached Files Attached Files
    Last edited by tigeravatar; 06-19-2012 at 05:14 PM. Reason: Added code tags to second formula, corrected typos
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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