+ Reply to Thread
Results 1 to 4 of 4

Checking column data

  1. #1
    Registered User
    Join Date
    09-22-2006
    Posts
    5

    Checking column data

    Hi,

    I have been searching through the boards to try and find an answer to this question but nothing seems to fit, so maybe someone can help me.

    Within in my spreadsheets I need to check that data in Column A contains exactly 8 characters. Whilst the values are different the format is the same, every entry starting and ending with a letter interspaced by 6 numbers.

    Is there a simple formula I can use to check the column and highlight any entries that do not match that criteria.

    Many thanks

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by rszlp
    Hi,

    I have been searching through the boards to try and find an answer to this question but nothing seems to fit, so maybe someone can help me.

    Within in my spreadsheets I need to check that data in Column A contains exactly 8 characters. Whilst the values are different the format is the same, every entry starting and ending with a letter interspaced by 6 numbers.

    Is there a simple formula I can use to check the column and highlight any entries that do not match that criteria.

    Many thanks
    Hi rszlp,

    I'm assuming that there are no spaces in your data in column A, if so

    =IF(LEN(A1)=8,"OK","")

    oldchippy

  3. #3
    Forum Contributor stevebriz's Avatar
    Join Date
    09-07-2006
    Location
    Santiago Chile
    Posts
    389
    this can be done with macro if you are interested

    This changes the cell color to blue if length is 8 characters but with wrong start or wrong end character.

    If the cell is empty or has less or more than 8 characters it makes the cell red


    Please Login or Register  to view this content.
    VBA - The Power Behind the Grid

    Posting a sample of your workbook makes it easier to look at the Issue.

  4. #4
    Registered User
    Join Date
    09-22-2006
    Posts
    5
    Stevebriz and Oldchippy many thanks for your quick reponses.

    oldchippy - works great no problems

    Stevebriz - Would like to try your code though I am a bit of a novice at excel, can you tell me how i would apply that code within my worksheet to get it to run.

    Once again many thanks

+ 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