+ Reply to Thread
Results 1 to 6 of 6

A number or a letter?

  1. #1
    Registered User
    Join Date
    02-08-2005
    Location
    Kent, UK
    MS-Off Ver
    2010
    Posts
    69

    Question A number or a letter?

    I have a large list of "sites" that are basically numbers ranging from 1 to 99999. Some have letters at the end and some don't. Is there an Excel formula that can say whether the last letter of each "site" is a letter or a number?

    For example, I like Excel to tell me this is a letter: 77734C and that this is a number 3546.
    Last edited by koltregaskes; 10-28-2011 at 06:13 AM. Reason: Solved

  2. #2
    Registered User
    Join Date
    02-08-2005
    Location
    Kent, UK
    MS-Off Ver
    2010
    Posts
    69

    Re: A number or a letter?

    The reason I need to know is that the letter refers to an "option" and I would like the "option" extracted from the "site" number so I can put it into another column on the report.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: A number or a letter?

    =RIGHT(cell address,1)


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: A number or a letter?

    Hi

    I attach you my proposal.

    Regards
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: A number or a letter?

    Try:

    =IF(ISNUMBER(--RIGHT(A2,1)),"Number","Letter")


    Regards

  6. #6
    Registered User
    Join Date
    02-08-2005
    Location
    Kent, UK
    MS-Off Ver
    2010
    Posts
    69

    Re: A number or a letter?

    TMShucks - thanks for the second suggestion, that was the one. The first was obviously too basic. :-)

    Fotis1991 - sadly I cannot open that attachment up from my work machine.

+ 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