+ Reply to Thread
Results 1 to 6 of 6

Count highest number of letter in a cell

  1. #1
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Count highest number of letter in a cell

    Hello gurus,

    I just want to count the highest number of letters in a cell and display that letter in column I2.

    For example i have the below data:
    Please Login or Register  to view this content.
    I have attached my file.
    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Count highest number of letter in a cell

    Try this array formula

    =CHAR(MODE(IF(A2:H2="","",CODE(A2:H2))))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Or this non-array

    =INDEX(A2:H2,MODE(MATCH(A2:H2,A2:H2,0)))
    Last edited by AlKey; 09-10-2014 at 09:54 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Count highest number of letter in a cell

    use the following array formula in cell I2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Also see attached - LETTERS.xlsx

    Note: an array formula must be entered as Ctrl + Shift + Enter
    HTH!

  4. #4
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Count highest number of letter in a cell

    Thanks Alkey and jewelsharma! it works!

    do you have a macro for this? i've just preferred it in a macro.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Count highest number of letter in a cell

    Mate, no idea why you need a macro for this. Alkey has given you a fantastic non-array formula.

    However, if you must, try this:
    Please Login or Register  to view this content.
    Please mark the thread as 'Solved' and do consider adding reputation to Alkey for his brilliant formula.
    Cheers!

  6. #6
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Count highest number of letter in a cell

    Thanks both!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. count number of times the letter "a" appears in a cell
    By mohammadkhajoo in forum Excel General
    Replies: 8
    Last Post: 05-31-2014, 07:48 PM
  2. Replies: 5
    Last Post: 07-05-2012, 04:04 PM
  3. [SOLVED] How to count a cell with a number or letter as 1 or an empty cell as 0
    By garrett.grillo in forum Excel General
    Replies: 4
    Last Post: 03-05-2012, 09:44 AM
  4. [SOLVED] How do I count the number of times a letter is used in a cell?
    By jsrawlings in forum Excel General
    Replies: 5
    Last Post: 06-27-2006, 09:10 PM
  5. count a number range and a letter in a cell
    By santaviga in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2006, 06:15 AM

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