+ Reply to Thread
Results 1 to 24 of 24

Date validation formula (problem)

  1. #1
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Date validation formula (problem)

    hi all,

    i have problem about data validation setting formula, how get out this problem with data validation formula?

    data---------------------allow input date.

    01/03/2014--------------greater than or equal 01/03/2014
    25/11/2014--------------greater than or equal 25/11/2014
    etc...

    anybody help me, will be appreciated...

    thanks...

  2. #2
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: Date validation formula (problem)

    In Data validation, just enter 'date' as the allowed input, then select the start date as whatever you want the minimum to be (ie. 1/3/2014 or 25/11/2014 in your examples)

    Just set the allowed value to 'greater than or equal to'

  3. #3
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    thanks but not like that, i mean,

    for date criteria (ie.01/03/2014) must be the same line row with criteria input (greater than or equal 01/03/2014)
    example;
    ---for 25/11/2014----allowed date ----25/11/2014 to 30/11/2014.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Date validation formula (problem)

    Not sure excatly how you determine the date ranges, but assuming you have the lower limit in B1 and the upper limit in C1, try this in Data Validation - custom...
    =AND(A1>=B1,A1<=C1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    Ford, thanks but not work...

    for date 25/11/2014, date of range to allow (25/11/2014 - 30/11/2014)
    for date 01/03/2014, date of range to allow (01/03/2014 - 31/03/2014)
    for date 12/12/2014, date of range to allow (12/12/2014 - 31/12/2014)
    etc...

    adjusted with day of month....

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Date validation formula (problem)

    Did you put the lower and upper dates in their own cells, or both in the same cell?

    My suggestion will only work if the dates are in 2 cells

  7. #7
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    put the lower and upper dates their own cells...thanks Ford

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Date validation formula (problem)

    so it works now?

  9. #9
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    your formula make me confuse,
    =AND(A1>=B1,A1<=C1), please, check it.

  10. #10
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    assuming, all my data in col. a, and col. b is as target...why you show cell "b1,c1"??

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Date validation formula (problem)

    B
    C
    1
    25/11/2014 - 30/11/2014
    2
    11/25/2014
    11/30/2014


    B1 is not a date, it is text
    B2 and C2 are both dates....you need to have dates for this to work, not text. If you insist on putting both dates inthe same cell like that, I will have to create a formula to split them apart 1st

  12. #12
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: Date validation formula (problem)

    Jhon, where is your end date? Kalau tanggal mulai adalah di column A, dimana tanggal akhir? (minta maaf, aka tak pakai bahasa selama 3 tahun!)

  13. #13
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Date validation formula (problem)

    May be this
    Harapan itu bekerja dengan baik

    Untitled.jpg
    Last edited by bebo021999; 03-25-2014 at 01:21 AM.
    Quang PT

  14. #14
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    just only start date, end of date based on day of month,
    i means if January---end date is 31/01, etc...(tanggal akhir adalah tanggal akhir setiap bulan, tergantung dari bulannya apa)...

  15. #15
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: Date validation formula (problem)

    Kalau begitu, use Bebo's data validation suggestion

  16. #16
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    sorry "end of date based on end day of each month"...

  17. #17
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    Bebo, thanks but not full work

    here my criteria;

    03/05/2014-------------should be date to allow entry-------range of 03/05/204 to 31/05/2014.....

  18. #18
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Date validation formula (problem)

    A1="03/05/2014"
    Input cell B1
    data validation:
    Start date:=A1
    End date:=EOMONTH(A1,0) .....> must be 31/05/2014.
    If it doesnot work, try upload a worksheet, or screenshot at least

    semoga sukses!

  19. #19
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    Bebo, my expected result not must be 31/05/2014, but range from 03/05/2014 up to 31/05/2014 (allowed entry date)

  20. #20
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    here my sample workbook...

    please, see it....
    Attached Files Attached Files

  21. #21
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: Date validation formula (problem)

    Hi John,

    Try this.
    Attached Files Attached Files

  22. #22
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    Hi,cffndncr...it was help me, work like a charm...

    thanks....(susah bener meng-eja nama kamu)

    BIEN MERCI!!!!!

  23. #23
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Date validation formula (problem)

    for Bebo, thanks too...i am missing it...

  24. #24
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: Date validation formula (problem)

    Hi Jhon,

    If this takes care of your problem, please mark the thread as [SOLVED]. You should also add rep to Bebo, who came up with the solution

+ 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. Problem with Formula combined with data validation
    By taylorbe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-14-2014, 09:02 AM
  2. Data Validation date format formula
    By raw_geek in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2013, 01:20 PM
  3. Problem with Formula based on Data Validation Selection from multiple tabs
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-13-2012, 05:32 PM
  4. Data Validation formula problem
    By rrucksdashel in forum Excel General
    Replies: 1
    Last Post: 09-29-2005, 01:05 AM
  5. [SOLVED] Vlookup:Is there a resrtition to the use of this formula with validation date?
    By SteveH in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 06:05 PM

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