The nifty way to do this would be to write
a user-defined function in VBA to do the hard work.
The way to do this without VBA is a bit ugly,
but works well enough.
Let's say that you want to see which cell contents
are most common in column C. (If you need
which WORD in the column is most common, then this
won't help.)
Insert a column D, which can be hidden after
you put formulas in it. The formula for D1 is:
=COUNTIF(C1,C:C)
Copy this down as far as you need.
To get the most common cell in C, somewhere
(not in columns C or D) have the formula:
=INDIRECT(ADDRESS(MATCH(MAX(D:D),D:D,0),COLUMN(C:C)))
HTH
The nifty way to do this would be to write
a user-defined function in VBA to do the hard work.
The way to do this without VBA is a bit ugly,
but works well enough.
Let's say that you want to see which cell contents
are most common in column C. (If you need
which WORD in the column is most common, then this
won't help.)
Insert a column D, which can be hidden after
you put formulas in it. The formula for D1 is:
=COUNTIF(C1,C:C)
Copy this down as far as you need.
To get the most common cell in C, somewhere
(not in columns C or D) have the formula:
=INDIRECT(ADDRESS(MATCH(MAX(D:D),D:D,0),COLUMN(C:C)))
HTH
Tim: Your solution is generic. Even better than MODE which is restricted to 30 numbers. It delivers the most common word too. So I don't understand your statement between parens!
You meant of course:
=COUNTIF(C:C,C1)
better:
=COUNTIF(C:C,""&C1)
Aladin
Tim: Your solution is generic. Even better than MODE which is restricted to 30 numbers. It delivers the most common word too. So I don't understand your statement between parens!
You meant of course:
=COUNTIF(C:C,C1)
better:
=COUNTIF(C:C,""&C1)
Aladin