+ Reply to Thread
Results 1 to 2 of 2

Data validation with dates

  1. #1
    Registered User
    Join Date
    09-19-2008
    Location
    Gloucester, MA
    MS-Off Ver
    Excel 2016
    Posts
    62

    Data validation with dates

    I'm trying to use data validation with dates. What I want to validate is whether the entered date is between a date in cell B32 and if cell C13 is 1, then the end date can be 2 years from the date in cell B32, and if cell C13 is not one then the entered date can be 6 years from the date in cell B32.

    I coded the end date in the data validation to be this:
    =IF($C$13=1,$B$32+2192,$B$32+731)
    but it doesn't seem to work when C13 is not 1. Does something seem wrong with this formula?

    Thanks.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Data validation with dates

    According to your explanation the formula should be reversed to

    =IF($C$13<>1,$B$32+2192,$B$32+731)
    or
    =IF($C$13=1,$B$32+731,$B$32+2192,)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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