Closed Thread
Results 1 to 4 of 4

How to determine Length

  1. #1
    Registered User
    Join Date
    03-23-2007
    Posts
    91

    How to determine Length

    Hi

    I need to know how can i determine the maximum number of characters in a group of cells. For example

    Column A

    2.2
    411
    5.555
    6

    If i use Len(Max(a1:a4)) it will return 411. But I would like the function to return 5, which corresponds to 5.555.
    Is there a built in function for this?

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try

    =Max(Len(A1:A4)) confirmed with CTRL+SHIFT+ENTER not just ENTER
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363
    You could try this also

    Please Login or Register  to view this content.
    Denis

    Please always attach the sample workbook without sensitive information when asking for help

    To add a module
    Press Alt + F11 (this is the Visual Basic Environment)
    Insert Menu, select Module
    Past code there
    Close Visual Basic Environment (X)

  4. #4
    Registered User
    Join Date
    03-23-2007
    Posts
    91
    =Max(Len(A1:A4))

    How can i make that work witha macro?
    I need this to work for several Columns.
    And just need to display the maximum amount of characters.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1