+ Reply to Thread
Results 1 to 16 of 16

Dependent Data Validation Special Case

  1. #1
    Registered User
    Join Date
    12-20-2008
    Location
    India
    Posts
    23

    Dependent Data Validation Special Case

    Hi,

    Here is what I am looking for I have a 3 list first is 'start date', 'end date' and third is 'Product'.
    The LoV's are:
    Start Date:
    1
    2
    3
    4
    5
    6
    7

    End Date:
    1
    2
    3
    4
    5
    6
    7

    Product:
    Pen
    Pencil
    Paperclip
    Eraser
    Sheetbook
    Ledger
    Diluter

    The requirement is that if start date is selected in cell A2 '2' column C2 should publish 'Pencil' and depending on the Start date the end date should have a date list equals or greater than start date i.e 2,3,4,5,6,7 (Date 1 should not be listed in List).

    So basically it is dependent date validation but both list depends on list A.

    Help on this would be much appreciated.

    Thanks and Regards,
    Nukecity83
    Last edited by nukecity83; 04-09-2009 at 10:44 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Dependent Data Validation Special Case

    If your list of Start Dates to use in Data Validation is in say I1:I7, and you have your Start Date data validation in A1, then go to Data|Validation, select List and enter =$I$1:$I$7

    then go to Insert|Name|Define and enter name: List2

    In the Refers to field enter formula: =INDEX($I$1:$I$7,$A$1):$I$7

    click Ok

    Now in B2, activate Data Validation and choose list, and enter formula =List2.

    adjust ranges/references to suit.

    I am not sure what you want to do with the Products list, you only want to show a list from Pencils downward if 2 is chosen in A1?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Dependent Data Validation Special Case

    Maybe something like this?

    not validation... but didn't get too what need to be done

    Book1.xlsx
    Last edited by zbor; 04-08-2009 at 01:06 PM. Reason: Hmmm, not good.. still working on it ...

  4. #4
    Registered User
    Join Date
    12-20-2008
    Location
    India
    Posts
    23

    Re: Dependent Data Validation Special Case

    Quote Originally Posted by NBVC View Post
    If your list of Start Dates to use in Data Validation is in say I1:I7, and you have your Start Date data validation in A1, then go to Data|Validation, select List and enter =$I$1:$I$7

    then go to Insert|Name|Define and enter name: List2

    In the Refers to field enter formula: =INDEX($I$1:$I$7,$A$1):$I$7

    click Ok

    Now in B2, activate Data Validation and choose list, and enter formula =List2.

    adjust ranges/references to suit.

    I am not sure what you want to do with the Products list, you only want to show a list from Pencils downward if 2 is chosen in A1?
    Okay may be I was not able to make you understand the requirement check the attachments for reference, I have "Start Period" which is Quarter Based (FY09Q4,FY10Q1,FY10Q2,FY10Q4,FY11Q1) same is with the "End Period" but the End period cannot be less than Start Period like If Start is FY10Q1 end period cannot be FY09Q4. Now depending on what has been selected in Start Date the user should have either FY09 Initiatives or FY10 Initiatives.

    Hope this makes the picture clear.

    Thanks,
    Nukecity83
    Attached Files Attached Files

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Dependent Data Validation Special Case

    See attached...

    For Start Date, I defined a dynamic range called List1 as:

    Please Login or Register  to view this content.
    For End Date, I defined a dynamic range dependent on List1 called List2 as:

    Please Login or Register  to view this content.
    for getting the Initiatives I used formula in E5, copied down:

    Please Login or Register  to view this content.
    but am not 100% sure that is what you wanted?

    Hope this helps.
    Attached Files Attached Files

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Dependent Data Validation Special Case

    For data validation in D5, Formula is: =AND(MID(D5,3,2)>=MID(C5,3,2), RIGHT(D5)>=RIGHT(C5))
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    12-20-2008
    Location
    India
    Posts
    23

    Re: Dependent Data Validation Special Case

    Quote Originally Posted by NBVC View Post
    See attached...

    For Start Date, I defined a dynamic range called List1 as:

    Please Login or Register  to view this content.
    For End Date, I defined a dynamic range dependent on List1 called List2 as:

    Please Login or Register  to view this content.
    for getting the Initiatives I used formula in E5, copied down:

    Please Login or Register  to view this content.
    but am not 100% sure that is what you wanted?

    Hope this helps.
    Okay could you check the attached excel sheet where I have done my part of List Validation and need Help with End Period should be '=' or '>' Start Period.

    Thanks,
    Nukecity83
    Attached Files Attached Files

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Dependent Data Validation Special Case

    Is attached what you need?
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    12-20-2008
    Location
    India
    Posts
    23

    Re: Dependent Data Validation Special Case

    Quote Originally Posted by NBVC View Post
    Is attached what you need?
    Yes, The attached is what exactly I am looking for but I am not able to implement the Validation on End Period so that End Period is always equal or greater than Start Period. Could you help me on that?

    Thanks,

  10. #10
    Registered User
    Join Date
    12-20-2008
    Location
    India
    Posts
    23

    Re: Dependent Data Validation Special Case

    Quote Originally Posted by nukecity83 View Post
    Yes, The attached is what exactly I am looking for but I am not able to implement the Validation on End Period so that End Period is always equal or greater than Start Period. Could you help me on that?

    Thanks,
    Sorry for the previous response.. I saw the file you provided however the End Period needs to be fixed a little like If start period is FY10Q1 then End period should be showing:
    Start Period>>> End Period
    FY10Q1>>>>>> FY10Q1
    >>>>>>>>>>>>FY10Q2
    >>>>>>>>>>>>FY10Q3
    >>>>>>>>>>>>FY10Q4
    >>>>>>>>>>>>FY11Q1

    Could you implement this?

    Thanks,

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Dependent Data Validation Special Case

    I will try tomorrow (logging off)...

    Just to clarify.. you actually don't want data validation you want to fill in cells D5:D18?

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Dependent Data Validation Special Case

    You might try the data validation I suggested in Post #6.

  13. #13
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Dependent Data Validation Special Case

    Quote Originally Posted by nukecity83 View Post
    Sorry for the previous response.. I saw the file you provided however the End Period needs to be fixed a little like If start period is FY10Q1 then End period should be showing:
    Start Period>>> End Period
    FY10Q1>>>>>> FY10Q1
    >>>>>>>>>>>>FY10Q2
    >>>>>>>>>>>>FY10Q3
    >>>>>>>>>>>>FY10Q4
    >>>>>>>>>>>>FY11Q1

    Could you implement this?

    Thanks,
    See attached.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    12-20-2008
    Location
    India
    Posts
    23

    Re: Dependent Data Validation Special Case

    Quote Originally Posted by NBVC View Post
    See attached.
    Cool Thanks, I have one more enhancement to the same file:

    Suppose you have selected the 'Start Period' then 'End period' and finally the 'Initiatives'. Now I want a Macro (if there is any other way apart from Macro that would also be fine) such that if user go backs and change the Start Period to some other value the End Period and Initiatives cells should get cleared so that user can reselect them.

    Thanks.

  15. #15
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Dependent Data Validation Special Case

    I just saw a similar request this morning here:

    http://www.excelforum.com/excel-gene...t-problem.html

    see if you can adapt it to your sheet.

  16. #16
    Registered User
    Join Date
    12-20-2008
    Location
    India
    Posts
    23

    Re: Dependent Data Validation Special Case

    Quote Originally Posted by NBVC View Post
    I just saw a similar request this morning here:

    http://www.excelforum.com/excel-gene...t-problem.html

    see if you can adapt it to your sheet.
    Absolutely Brilliant, Thanks a ton.

+ 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