+ Reply to Thread
Results 1 to 4 of 4

Get max characters in cell in 1 column

  1. #1
    Registered User
    Join Date
    02-28-2006
    Posts
    1

    Get max characters in cell in 1 column

    I am trying to figure out how to get the max charcters in a column.

    So if I have ten items in one column, I want to be able to put a formula or run a macro that will count the total number of characters in each cell and then return the max number.

    thanks in advance.

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187
    try

    =Len(B3)
    =len("abc")

    regards

  3. #3
    Bob Phillips
    Guest

    Re: Get max characters in cell in 1 column

    =MAX(LEN(A1:A100))

    which is an array formula, it should be committed with Ctrl-Shift-Enter, not
    just Enter.

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "fbonilla" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I am trying to figure out how to get the max charcters in a column.
    >
    > So if I have ten items in one column, I want to be able to put a
    > formula or run a macro that will count the total number of characters
    > in each cell and then return the max number.
    >
    > thanks in advance.
    >
    >
    > --
    > fbonilla
    > ------------------------------------------------------------------------
    > fbonilla's Profile:

    http://www.excelforum.com/member.php...o&userid=32011
    > View this thread: http://www.excelforum.com/showthread...hreadid=517528
    >




  4. #4
    Dave Peterson
    Guest

    Re: Get max characters in cell in 1 column

    =MAX(LEN(A1:A20))

    This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
    correctly, excel will wrap curly brackets {} around your formula. (don't type
    them yourself.)

    Adjust the range to match--but you can't use the whole column.

    fbonilla wrote:
    >
    > I am trying to figure out how to get the max charcters in a column.
    >
    > So if I have ten items in one column, I want to be able to put a
    > formula or run a macro that will count the total number of characters
    > in each cell and then return the max number.
    >
    > thanks in advance.
    >
    > --
    > fbonilla
    > ------------------------------------------------------------------------
    > fbonilla's Profile: http://www.excelforum.com/member.php...o&userid=32011
    > View this thread: http://www.excelforum.com/showthread...hreadid=517528


    --

    Dave Peterson

+ Reply to 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