Using LEN

godrob

New Member
Joined
Nov 11, 2003
Messages
39
Hello,

I'm using len to return the largest string in a column. What I would like to do is rather than display the amount of characters, actually display the cell data.

The formula I'm using is =max(len(F19:F500))

How can I add to this to display the cell value with the largest string.

Thanks

Rob.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
You could array (control shift enter) enter
=INDEX(F19:F30,MATCH(MAX(LEN(F19:F30)),LEN(F19:F30),0))

given the size of your actual range, you may be better served with a two cell contraction. Can you put the len formula in an unused column somewhere in rows 19:500?
 

Watch MrExcel Video

Forum statistics

Threads
1,129,685
Messages
5,637,809
Members
416,983
Latest member
LessThanAverageUser

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top