+ Reply to Thread
Results 1 to 4 of 4

Expiry Date validation

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    leicester, england
    MS-Off Ver
    Excel 2003
    Posts
    4

    Expiry Date validation

    Hey folks,

    Im drawing an absolute blank when its comming to validating a cell that is to hold an expiry date and am after a little help/hints. Basically what i want to happen is that the cell (H25) should hold the form mm/yy much like a credit card. Also im wanting to make sure that say if the month is out of date then a message will appear saying so, same as if a year is out of date.

    Also i dont want it to accept anything other then digits, which is proving difficult for me especially as i want to us a / in the input cell.

    any help would be appreciated, im spectacularly stuck atm.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Expiry Date validation

    You should be able to use Data Validation
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    02-10-2010
    Location
    leicester, england
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Expiry Date validation

    I've tried doing it through the data validation button, but it doesn't work. and as far my (limited) excel knowledge tells me, you cant do that many complicated validations through the data validation button.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Expiry Date validation

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

    How do you know that the date has expired?

    Format the cell as mm/yy & restrict entry to dates
    Last edited by royUK; 02-17-2010 at 04:10 PM.

+ 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