+ Reply to Thread
Results 1 to 10 of 10

How to prevent input certain date?

  1. #1
    Forum Contributor
    Join Date
    03-04-2015
    Location
    Jakarta
    MS-Off Ver
    15
    Posts
    154

    Lightbulb How to prevent input certain date?

    How to prevent input certain date and holiday.

  2. #2
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: How to prevent input certain date?

    Hi there,

    Either you can create a list of dates which are supposed to be entered or can use some simple formula with DV to prevent input holiday and other dates.

    Also, request you to please attach a sample workbook in order to give more clarity on your requirement.

    Thanks,
    Anil Dhawan

  3. #3
    Forum Contributor
    Join Date
    03-04-2015
    Location
    Jakarta
    MS-Off Ver
    15
    Posts
    154

    Re: How to prevent input certain date?

    dates: on March 2016: 6, 11, 12, 13, 17, 20, 27

  4. #4
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: How to prevent input certain date?

    Hi,

    First make a list of date you want to exclude, in a separate column say column J (J1:J7)

    Suppose your cell is I1 where you want to enter dates.

    Go to Data > Data Validation > Custom > =$I$1<>$J$1:$J$7 > Hit OK

    Regards,
    Khalid

  5. #5
    Forum Contributor
    Join Date
    03-04-2015
    Location
    Jakarta
    MS-Off Ver
    15
    Posts
    154

    Re: How to prevent input certain date?

    Khalidngo, how to prevent input on many cells? ex: $I$1:$I$100

  6. #6
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: How to prevent input certain date?

    Hi,

    You can use following formula in "CUSTOME" under Data Validation in order to prevent specific dates.

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: How to prevent input certain date?

    Quote Originally Posted by putritersenyum View Post
    Khalidngo, how to prevent input on many cells? ex: $I$1:$I$100
    Just select the range before putting Data Validation and the entire selected range will prevent users from entering specific dates..
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  8. #8
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: How to prevent input certain date?

    May be this:

    Select your range I1:I100

    Data Validation > Custom:
    =NOT(COUNTIF($J$1:$J$7,I1)>0)

    Regards,

  9. #9
    Forum Contributor
    Join Date
    03-04-2015
    Location
    Jakarta
    MS-Off Ver
    15
    Posts
    154

    Re: How to prevent input certain date?

    Adhawan06 and Khalidngo thankyou very much all of your formulas work for me... and I can use your formulas.

  10. #10
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: How to prevent input certain date?

    Quote Originally Posted by putritersenyum View Post
    Adhawan06 and Khalidngo thankyou very much all of your formulas work for me... and I can use your formulas.
    Thank you for your kind feedback..

    Please take few seconds to mark this thread as SOLVED and *Add Reputation to the user(s) who have worked with you on resolving your query..

+ 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. [SOLVED] How to prevent input duplicate name of the same date?
    By putritersenyum in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-15-2016, 07:03 PM
  2. Prevent Input Box when Navigation form loads
    By smugglersblues in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-31-2015, 08:50 AM
  3. Replies: 12
    Last Post: 06-06-2013, 08:46 PM
  4. Prevent User Input into ActiveX text box
    By g8r777 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-11-2012, 03:03 PM
  5. How to prevent wrong input into cell?
    By senglory in forum Excel General
    Replies: 3
    Last Post: 08-26-2008, 06:55 PM
  6. [SOLVED] How do I lock a column in EXCEL to prevent changes-can add input
    By amarie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-08-2005, 02:25 PM
  7. Prevent input of formulas
    By TEAM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2005, 06:40 AM

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