+ Reply to Thread
Results 1 to 3 of 3

Code to differentiate between numbers and characters in a cell

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    28

    Code to differentiate between numbers and characters in a cell

    Good afternoon,

    I am trying to write a piece of code that looks at a list of post codes and uses the position of characters and numbers in order to identify whether they are UK based or not.

    My rule for this code is that in all cases where the first and second characters are letters and the third character is a number then it will remove these cases from the spreadsheet, e.g. if a post code is RM12 6TU then it will be removed from the spreadsheet, but if it is N32 2BL then the post code will stay in the spreadsheet.

    Is this something that is possible? And any ideas on how I would construct the syntax for this?

    Thank you very much for your time on this.

    Louise

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Code to differentiate between numbers and characters in a cell

    Please Login or Register  to view this content.
    for instance
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    12-14-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Code to differentiate between numbers and characters in a cell

    That looks cool - will give it a try - thank you

+ 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