+ Reply to Thread
Results 1 to 12 of 12

Can I find the lowest letter in a range of letters

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Whitley Bay, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Can I find the lowest letter in a range of letters

    Hi

    Does anyone know if I can use a formula to select the lowest letter from a number of letters in a row. For example, if a particular row contains the letters F,G,C,E in individual cells, is there a formula than can look at the cell contents in the range and return the lowest letter, in this case C.

    I can see how I could do it by assigning numeric values to each letter but is this trhe only way?

    Thanks

    EddieLFC

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,375

    Re: Can I find the lowest letter in a range of letters

    Hi Eddie and welcome to the forum,

    Look at the Char() and Code() functions. I believe they will answer your question. See attached for an example.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,062

    Re: Can I find the lowest letter in a range of letters

    try this:

    =CHAR(MIN(CODE(UPPER(C1:L1&CHAR(160)))))

    Comfirmed with ctrl+shift+enter (not just enter)

    This will return G no matter is it g or G
    Never use Merged Cells in Excel

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,375

    Re: Can I find the lowest letter in a range of letters

    @zbor,

    Why do you need the "&CHAR(160)" in your above formula?

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,062

    Re: Can I find the lowest letter in a range of letters

    Because it return #VALUE for blank cells. This way I add CHAR(160) at the end (I could put some other number only bigger than letters).
    That way blank cell will become CHAR(160) and A will become A&CHAR(160) so it will take only A.

    And if all are blank then it will still appear as blank (some other number might return something so I take 160).

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Can I find the lowest letter in a range of letters

    This array formula also seems to work, allowing for blanks ...
    Please Login or Register  to view this content.
    Comfirmed with Ctrl+Shift+Enter not just enter.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,375

    Re: Can I find the lowest letter in a range of letters

    Please Login or Register  to view this content.
    Also works. (CSE of course)

    I hate Char(160) as I can't see them and always think they are spaces when they aren't!

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,062

    Re: Can I find the lowest letter in a range of letters

    You won't see him here to unles all cells are blank.
    But yes, your approach is also works.. I just avoid IF formula

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Can I find the lowest letter in a range of letters

    It's perhaps being a bit over cautious, but if the range to analyse contains a number, a leading space, or character less than 65, both methods will return unexpected results, (see the attached workbook).

    This array seems a little more robust
    Please Login or Register  to view this content.
    Comfirmed with Ctrl+Shift+Enter not just enter.

    However EddieLFC has marked the thread [SOLVED], so I'm assuming the problem doesn't arise.
    Attached Files Attached Files

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,062

    Re: Can I find the lowest letter in a range of letters

    It won't be a problem if numbers are lower than letters.
    Probably there is no numbers at all... If there is, hope user will come back with that issue.

  11. #11
    Registered User
    Join Date
    02-19-2020
    Location
    Christchurch, NZ
    MS-Off Ver
    2016
    Posts
    1

    Re: Can I find the lowest letter in a range of letters

    how to i adjust this formula to find the highest letter instead of the lowest letter?

  12. #12
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,697

    Re: Can I find the lowest letter in a range of letters

    tgallap, first, welcome to the forum. Please review the forum rules (link at the top), there aren't many but posting your question on another's post is not good (forum rule #4).
    feel free to start your own post, they are free.
    and if you feel info on this post is relevant copy the url and paste it into your post.
    again, welcome to the forum.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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