+ Reply to Thread
Results 1 to 7 of 7

Date and count validation in single cell - Custom Validation

  1. #1
    Registered User
    Join Date
    09-11-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    23

    Date and count validation in single cell - Custom Validation

    Hi Experts,

    I need Date and count validation in single cell.

    Eg.

    A1:
    A2: Condition 1: 01-01-2013 (date between 01-01-2011 and 31-12-2013)
    Condition 2: without enter any value in A1 it won't allow to enter value in A2

    Please help me..

    Thanks
    Murugavel S

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,658

    Re: Date and count validation in single cell - Custom Validation

    I am not sure what do you mean by any value in A1 cell

    Place the cursor in A2 cell>>Alt+D+L>>Settings>>Custom>>Any of the below formula

    If A1 cell is NUMBER and A2 is >=01-01-2013 and <= 31-12-201
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If A1 cell is ANYTHING and A2 is >=01-01-2013 and <= 31-12-201
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    09-11-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Date and count validation in single cell - Custom Validation

    Excellent thats i want.

    One more thing
    how i can do for time instead of date..

    Thanks,
    Murugavel S

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,658

    Re: Date and count validation in single cell - Custom Validation

    Use Time Function instead of Date.

    TIME(hour, minute, second)

  5. #5
    Registered User
    Join Date
    09-11-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Date and count validation in single cell - Custom Validation

    hI

    =AND(COUNTA(A1),A2>=TIME(0,0,0),A2<=TIME(23,59,59))

    IT WONT ALLOW TIME...

    PLZ HELP ME

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,658

    Re: Date and count validation in single cell - Custom Validation

    It's working fine for me. I believe you are making mistake in Input Entry of time.

    At the same time I believe the formula should be like this...

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

  7. #7
    Registered User
    Join Date
    09-11-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Date and count validation in single cell - Custom Validation

    Excellent, Thanks a lot

+ 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