+ Reply to Thread
Results 1 to 6 of 6

Can I check that entries satisfy a particular format?

  1. #1
    Registered User
    Join Date
    04-14-2006
    Posts
    24

    Can I check that entries satisfy a particular format?

    Is there a way that i can check that all entries in a particular column satisfy a certain format and perhaps conditionally format those that do not?

    example i wish to check that all entries are exactly in the format xx:yy:zz no more no less!

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544

    Re: Can I check that entries satisfy a particular format?

    Copy this code into the object of the sheet :

    Please Login or Register  to view this content.
    You only have to change the range in the 'Intersect' part.

    Success,
    Erik
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

  3. #3
    Registered User
    Join Date
    04-14-2006
    Posts
    24

    Re: Can I check that entries satisfy a particular format?

    SORRY, I do not understand how to copy into the object of the sheet

    I for example need to find all entries that satisfy the format
    #:##:##:##
    where # is a digit number

    Could you be more detailed?

  4. #4
    Registered User
    Join Date
    04-14-2006
    Posts
    24

    Re: Can I check that entries satisfy a particular format?

    any more help on this?

  5. #5
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Can I check that entries satisfy a particular format?

    Quote Originally Posted by perfection View Post
    SORRY, I do not understand how to copy into the object of the sheet

    I for example need to find all entries that satisfy the format
    #:##:##:##
    where # is a digit number

    Could you be more detailed?
    Right click on the sheet tab your data is on and select "View Code" and post the code provided there.

    WinteE stated that your data in on column A starting from row 1 to row 10, you would have to change this to your actual range.

    Ron
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Can I check that entries satisfy a particular format?

    Quote Originally Posted by perfection
    ...i wish to check that all entries are exactly in the format xx:yy:zz
    Quote Originally Posted by perfection
    I for example need to find all entries that satisfy the format
    #:##:##:##
    where # is a digit number
    It would be a good idea to post a sample I think and outline the desired results.

    I suspect you will be able to avoid the need for VBA but the approach you apply will depend heavily on the values you're trying to highlight - which at present (given above) is not clear.

+ 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