+ Reply to Thread
Results 1 to 3 of 3

Using "Data Validation" to Warn When a date is not within the current week

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Using "Data Validation" to Warn When a date is not within the current week

    I'm trying to use Data Validation to have a warning pop up to the user that the date they entered is not within the current week and am not having any luck. I've been attempting to use the "Custom" option within the validation function but it's failing to work. I just want this to be a warning that alerts the user of the situation but doesn't prevent them from continuing with the date if it's correct. In the attached example, the last date entered (cell C9) should show a warning based on comparing that week number (cell D9) to the first week number entered (cell D5), but allow the user to either continue using that date or go back and correct it if it's simply a data entry error. Thanks in advance for any assistance!Sample Date Validation.xlsx

  2. #2
    Registered User
    Join Date
    08-07-2012
    Location
    Chicago, USA
    MS-Off Ver
    Excel, Access 2010
    Posts
    1

    Re: Using "Data Validation" to Warn When a date is not within the current week

    the custom Data Validation formula you need is: (this assumes your data starts in cell A2)
    =WEEKNUM(A2)=WEEKNUM(TODAY())

    Rich

    ---------- Post added at 09:49 AM ---------- Previous post was at 09:44 AM ----------

    And to allow the user to continue, change the Data Validaiton Error Alert style to "Warning" or "Information" rather than "Stop".

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using "Data Validation" to Warn When a date is not within the current week

    If you just want the other values to be the same as the week value in D5, Selecting C6:C9

    =WEEKNUM($C6)=WEEKNUM($C$5)
    Click on the "Error Alert" tab and change it from "Stop" to "Warning" Type in specifics. Hope that helps.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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