Max Length in a row

C

Commish

I am trying to find a formula or a quicker way to get the length of the largest value in a row of text values. Basically, it's a validation step in a large (1,000s of rows) table.

I can use the LEN function to get the length of any individual cell, or use a formula like =max(len(a1),max(b1),max(c1)). But I've got 30+ columns and would like to make it easier on the typing. Any thoughts/hints/tips?
 
J

joeu2004

Commish said:
I am trying to find a formula or a quicker way to get
the length of the largest value in a row of text values.
[....]
I can use the LEN function to get the length [...].
I've got 30+ columns

By "largest", I assume you mean "longest".

Enter the following array-entered formula (press ctrl+shift+Enter instead of
just Enter):

=max(len(a1:ad1))
 

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