Longest Entry in Columns

R

Rebecca

Hi. What is the best / quickest way to find the longest entry (most
characters / numbers, etc.) in a column? Thanks.
 
B

Biff

Hi!

This array formula entered with the key combo of
CTRL,SHIFT,ENTER will tell you how long the longest entry
is in a range of cells:

=MAX(LEN(A1:A100))

If you want to identify that entry, you could use
conditional formatting:

Select the range A1:A100
Goto Format>Conditional Formatting
Formula is: =LEN(A1)=MAX(LEN(A$1:A$100))
Click the Format button and select a background fill color
OK out

Biff
 
B

Biff

P.S. -

If you want the longest entry in a range of cells to be
returned in a formula:

Array entered with the key combo of CTRL,SHIFT,ENTER:

=INDEX(A1:A100,MATCH(TRUE,LEN(A1:A100)=MAX(LEN
(A1:A100)),0))

If more than one cell contains the longest entry the
formula will return the first instance of the longest
entry.

Biff
 

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

Top