+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Custom Data Validation

  1. #1
    Registered User
    Join Date
    01-10-2008
    Posts
    20

    Custom Data Validation

    I have a question which seems relatively simple around Data Validation.

    Column A contains a free text field for a date. Column B, contains a list Data Validation of status. The status drop down options are "Complete","In Process","Cancelled".

    The goal is whenever someone selects "Complete" from the status column if there is not a date in column A to have an error message pop up. Can someone please assist? Thank you! (Note this is in Excel 2007)

    A B
    Date Status

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi Superman,

    I don't believe you could do both with Data Validation (create the drop-down list AND check to see if a date is in column A of that row). For that you could use a worksheet_change even macro like the one below:
    Please Login or Register  to view this content.
    Any time you change a value in column B to Complete it will check to see if a valid date exists in column A for that row. If not, the user will get a warning message and the last change will be undone. If yes, the user won't see any message (it will allow them to change the status).

    Hope that helps!

+ 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