MODE of character values

  • Thread starter Thread starter Paul Lautman
  • Start date Start date
P

Paul Lautman

A colleague just asked how to, from a list of character values, return the
value that appears most often.

@MODE (or =MODE for Excel) does it instantly for numbers, but the formula
that I ended up with for lists of characters was a lot more complicated than
I would have expected it to be.

As an example, in the following list, S should be returned by the formula:

W
S
S
VG
S
S
G
G
W
W

Any ideas?
 
There's definitely a shorter way, but here's what I came
up on the fly:

=INDEX(A1:A10,MAX(IF(MAX(COUNTIF(A1:A10,A1:A10))=COUNTIF
(A1:A10,A1:A10),ROW(A1:A10))))

Array-entered.

HTH
Jason
Atlanta, GA
 
That's really neat Peo. Can you explain:
1) How this works?
2) Why Jason's solution needed an array formula entry but this one doesn't?
3) How you know that the first parameter of MATCH can be a range when the
help says: "Lookup_value can be a value (number, text, or logical value) or
a cell reference to a number, text, or logical value."

I'd really appreciate this as I am in heavy learning mode on Excel.

The solution that I supplied was for Lotus123, which definitely cannot take
ranges as the first parameter of MATCH.

TIA
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top