tyija1995
Well-known Member
- Joined
- Feb 26, 2019
- Messages
- 781
- Office Version
- 365
- Platform
- Windows
Hi,
I want to find the maximum length of each field taking into account of errors that pop up.
For example I have data in cells A2:B938,
Column A is the ID number and Column B is a description,
I am using the following formula to get the max length:
{=MAX(LEN(A2:A938))} and similarly B2:B938 for column B
The first formula returns 3 (which is correct as the IDs go up to 952) but the 2nd formula returns #NAME ? as I have some errors in column B
Is there a formula I can use to bypass the errors and return the longest valid cell in column B? I have tried with AGGREGATE but can't quite get it to work...
Thanks.
I want to find the maximum length of each field taking into account of errors that pop up.
For example I have data in cells A2:B938,
Column A is the ID number and Column B is a description,
I am using the following formula to get the max length:
{=MAX(LEN(A2:A938))} and similarly B2:B938 for column B
The first formula returns 3 (which is correct as the IDs go up to 952) but the 2nd formula returns #NAME ? as I have some errors in column B
Is there a formula I can use to bypass the errors and return the longest valid cell in column B? I have tried with AGGREGATE but can't quite get it to work...
Thanks.