+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting - Numerical String ending with Alphabetical Value

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    ATL
    MS-Off Ver
    2007
    Posts
    18

    Question Conditional Formatting - Numerical String ending with Alphabetical Value

    Hey all, I am working with a somewhat lengthy worksheet with over 60,000 records. oOne of the columns within the worksheet is the "Account Number" column, which typically consists of 14 numerical characters, but can sometimes have additional or fewer characters. I need to set up a conditional format to pick up any account number that ends in an alphabetical value, (e.g. a through z). The account number is located in column G. Many Thanks!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Formatting - Numerical String ending with Alphabetical Value

    1) Highlight G2:G6000
    2) Apply this Conditional Formatting:

    Rule1 - Formula - =NOT(ISNUMBER(RIGHT(G2,1)+0))
    Format - Fill - Red

    http://screencast.com/t/l4OfQ9UPFNec
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional Formatting - Numerical String ending with Alphabetical Value

    try this in CF...

    =AND(CODE(RIGHT(C5,1))>=65,CODE(RIGHT(C5,1))<=122)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    02-22-2013
    Location
    ATL
    MS-Off Ver
    2007
    Posts
    18

    Re: Conditional Formatting - Numerical String ending with Alphabetical Value

    Perfect! Many Thanks JB!

  5. #5
    Registered User
    Join Date
    02-22-2013
    Location
    ATL
    MS-Off Ver
    2007
    Posts
    18

    Re: Conditional Formatting - Numerical String ending with Alphabetical Value

    Quote Originally Posted by FDibbins View Post
    try this in CF...

    =AND(CODE(RIGHT(C5,1))>=65,CODE(RIGHT(C5,1))<=122)
    Tried it but didn't have much luck. JB's response worked like a charm. Thanks for the response, however. It is very appreciated.

+ 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