#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Max Length in a row

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?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 829
Default Max Length in a row

"Commish" wrote:
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))

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Length that falls within a length interval? Igorin Excel Worksheet Functions 4 November 20th 08 06:10 PM
Finding a string of unknown length in a string of unknown length, Help! Hankjam[_2_] Excel Discussion (Misc queries) 8 July 3rd 08 06:49 PM
Validation length, Range length I think I need to rephrase the question Excel Discussion (Misc queries) 5 September 17th 07 06:29 AM
Length T De Villiers[_37_] Excel Programming 3 July 21st 06 03:21 PM
Max Length UNOTech Excel Programming 0 March 17th 05 10:29 PM


All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"