+ Reply to Thread
Results 1 to 11 of 11

Data validation not being updated when I drag down the cells

  1. #1
    Registered User
    Join Date
    05-26-2023
    Location
    NY
    MS-Off Ver
    365
    Posts
    5

    Unhappy Data validation not being updated when I drag down the cells

    Hello,

    I have a problem. I am using Excel 365 online and have the following data validation formula in one of the cells:
    =AND($N$3>$T$3,$N$3<$T$3+60,$N$3<>TEXT($N$3,"MM/DD/YYYY"))

    The problem is that when I drag it down to the next cell/row below, it does not update the values. This makes it to stop working. It should update to:
    =AND($N$4>$T$4,$N$4<$T$4+60,$N$4<>TEXT($N$4,"MM/DD/YYYY"))

    and if I drag it down one more time, it should update to:
    =AND($N$5>$T$5,$N$5<$T$5+60,$N$5<>TEXT($N$5,"MM/DD/YYYY"))
    etc.
    etc.
    etc.

    I have over 7000 rows and 7 different sheets so doing it manually is out of the question.

    Can anyone help?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,531

    Re: Data validation not being updated when I drag down the cells

    No, not going to happen with the $ sign in front of the row number(s). Delete that and it should be fine.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Should be
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-26-2023
    Location
    New York
    MS-Off Ver
    Microsoft Office 16
    Posts
    5

    Re: Data validation not being updated when I drag down the cells

    Hi. I've attached a file that has solved your issue. Essentially you should just be anchoring the column but not the row so that you can drag down.




    No 10 25
    No 935 920
    Yes 391 345

    Let's assume these are numbers in your set. We use the following formula where we see the "Yes" and No" column.

    =IF(AND($N3>$T3,$N3<$T3+60,$N3<>TEXT($N3,"MM/DD/YYYY")),"Yes","No")
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-26-2023
    Location
    NY
    MS-Off Ver
    365
    Posts
    5

    Re: Data validation not being updated when I drag down the cells

    Thanks but this doesn't work. When I try to edit and enter that version of the formula, I get the following error message on the bottom of the data validation popup: This formula currently evaluates to an error. Do you want to continue?

    However, there's no way to continue. I can only "Clear All" and "Cancel"

  5. #5
    Registered User
    Join Date
    05-26-2023
    Location
    NY
    MS-Off Ver
    365
    Posts
    5

    Re: Data validation not being updated when I drag down the cells

    essentially I need 3 things to be validated in each cell in column N:
    1. date format (month, day, year) using m-d-y or mm-dd-yy or m/d/y or mm/dd/yy
    2. the date entered in column N cannot be before the date in column T (if column T = June 1, 2023, the date entered in column N cannot be before this date)
    3. the date entered cannot be more than 60 days after the date in column T (if column T = June 1, 2023, the date entered in column N cannot be 60 days later than this date)

    Data validation will ensure that the date entered meets all 3 of the conditions above
    The formula I am using works, but when I drag it down it doesn't copy the cell value from the row below and hence, it stops working

  6. #6
    Registered User
    Join Date
    05-26-2023
    Location
    NY
    MS-Off Ver
    365
    Posts
    5

    Re: Data validation not being updated when I drag down the cells

    Quote Originally Posted by UnderLeveraged View Post
    Hi. I've attached a file that has solved your issue. Essentially you should just be anchoring the column but not the row so that you can drag down.




    No 10 25
    No 935 920
    Yes 391 345

    Let's assume these are numbers in your set. We use the following formula where we see the "Yes" and No" column.

    =IF(AND($N3>$T3,$N3<$T3+60,$N3<>TEXT($N3,"MM/DD/YYYY")),"Yes","No")
    Are you suggesting that the data validation is then dependant on the Yes, No status of another column? If so, this workaround could work. How do I create the data validation though so that if it detects a "No" cell, it will trigger the warning.

    For example, we have this:
    Column N, ................ Column T ................ Column X (yes.no status)
    May 1, 2023.............. May 2, 2023 ................ No (because it's before date in column T, status will be "no". This would prompt the data validation to trigger the warning. This solution could work but how do I set the data validation for column X and how do I set up the 3 rules in column X so that it takes all of these 3 rules into account:
    1. date format (month, day, year) using m-d-y or mm-dd-yy or m/d/y or mm/dd/yy
    2. the date entered in column N cannot be before the date in column T (if column T = June 1, 2023, the date entered in column N cannot be before this date)
    3. the date entered cannot be more than 60 days after the date in column T (if column T = June 1, 2023, the date entered in column N cannot be 60 days later than this date)

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,531

    Re: Data validation not being updated when I drag down the cells

    Thanks but this doesn't work.
    Who's that addressing? Me? I have nothing to test any potential solutions … and not enough information to simulate your setup/requirement.

  8. #8
    Registered User
    Join Date
    05-26-2023
    Location
    New York
    MS-Off Ver
    Microsoft Office 16
    Posts
    5

    Re: Data validation not being updated when I drag down the cells

    Astral - I suggest you send over the file because the most logical answer has been provided twice based on the information provided.

  9. #9
    Registered User
    Join Date
    05-26-2023
    Location
    New York
    MS-Off Ver
    Microsoft Office 16
    Posts
    5

    Re: Data validation not being updated when I drag down the cells

    Send over the file, and then I'll walk you through it.

  10. #10
    Registered User
    Join Date
    05-26-2023
    Location
    NY
    MS-Off Ver
    365
    Posts
    5
    Quote Originally Posted by TMS View Post
    Who's that addressing? Me? I have nothing to test any potential solutions … and not enough information to simulate your setup/requirement.
    When I try to edit and enter that version of the formula without the $ as you suggested, I get the following error message on the bottom of the data validation popup: This formula currently evaluates to an error. Do you want to continue?

    However, there's no way to continue. I can only "Clear All" and "Cancel"

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: Data validation not being updated when I drag down the cells

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 12-24-2022, 07:38 AM
  2. [SOLVED] Data validation lists change source designation when list data is updated.
    By frenurks in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-28-2015, 06:52 AM
  3. How to keep Data Validation list after a drag and drop...
    By pasqualebaldi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-09-2015, 03:31 PM
  4. Data validation how to drag and auto fill
    By brad999 in forum Excel General
    Replies: 11
    Last Post: 05-12-2014, 08:34 AM
  5. Can't Drag Formula In Sheet With Data Validation
    By tfougerousse in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-19-2013, 09:49 AM
  6. Data Validation list that can be updated both way
    By kumaramitoujjain in forum Excel General
    Replies: 0
    Last Post: 11-11-2012, 03:28 PM
  7. data validation-drag the formula down
    By frenchboy in forum Excel General
    Replies: 4
    Last Post: 05-28-2011, 10:33 PM

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