Longest string in a column
On Wed, 30 Nov 2005 15:08:01 -0800, Jeff Kantner
wrote:
Hi,
I'm looking for the function combination to determine, in a column of text,
what is the maximum number of characters in any one cell. max(len(cell))
works for any one cell, but max(len(A:A)) manufactures a number from
somewhere but whatever it is, it's not the number of characters in the
longest cell. Perhaps an array function? But my attempt at that ended with
#NUM!.
Thx.
Yes you do need an array function. However, you cannot refer to an entire
column in an array function.
So the array-entered formula =MAX(LEN(A1:A65535)) should work.
--ron
|