+ Reply to Thread
Results 1 to 8 of 8

Issue in Data Validation

  1. #1
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Issue in Data Validation

    I am using Data validation for some activities Eg..I have some activity called 1,2,3 in Activity column (F column) if i select the activity 1 in F Column then in G column it shoul come only 1 instead of 1,2,3 and similarly if I select 2 it should come 2 only instead coming all 1,2,3 in G column how to do this?

    Attached the same sample sheet for your reference
    Attached Files Attached Files
    Last edited by anwitha; 12-12-2010 at 09:32 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Issue in Data Validation

    Hi Anwitha,

    Your drop-downs show the same options because they have the same data validation setup. What you're after, I think, it called Dependent Data Validation, and there is a good example of how to set it up here:

    http://www.contextures.com/xldataval02.html

    Hope that helps!

  3. #3
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Issue in Data Validation

    Dear Paul,

    I tried with the link which you have provided above but out of 4 list I was able to create name box only for 2 and for remaining 2 when i selecte range and while naming it i am getting the error message "you must enter the valid reference you want to go to, or type a valid name for the selection" how can i go about this?

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Issue in Data Validation

    Post the workbook you created after implementing the steps outlined in the link Paul posted. Otherwise, nobody will know what you did or how to help you.

  5. #5
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Issue in Data Validation

    Hi,

    Attached the sample sheet for your reference...
    I was able to do it for 2 activities out of 4. for another 2 activities its not coming..pls hlep and also let me the reason why it was not possible for me..
    Attached Files Attached Files

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Issue in Data Validation

    You're on the right track.

    You've defined range names for "Campus" and "Others". You have not yet defined range names for "Off Campus" and "Walk In".

    The dependent data validation works best if there are no spaces in the dependent list columns, since range names do not allow spaces. Try to come up with names without spaces or use an underscore _ sign instead of the space for both the data valuation list value and for the range name.

    Also, the second data validation is pointing at the absolute reference

    =INDIRECT($B$2)

    Since you want each row to be evaluated individually, you need to make the row reference relative, i.e. without the $ sign.

    =INDIRECT($B2)

    Start this in C2 and copy down.

    edit:

    you can also use this workaround: create ranges named Off_campus and walk_in (with underscores) and leave the selection values in the first drop-down as they are.

    Then, in the data validation for the second drop-down, starting in B2, use the validation formula

    =INDIRECT(SUBSTITUTE(B2," ","_"))

    this will substitute the space in the value in column A with an underscore and render the correct range name. See attached.
    cheers,
    Attached Files Attached Files
    Last edited by teylyn; 12-10-2010 at 05:24 AM.

  7. #7
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Issue in Data Validation

    Dear Teylyn,

    Thanks for the help now i am able to do this as u suggested...

    Thanks a lot once again..........

    Cheers,
    Anwitha

  8. #8
    Registered User
    Join Date
    12-27-2010
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Exclamation Re: Issue in Data Validation

    I am still having issues with the drop-down references. A little background first: I am trying to make order forms for paintings that I've recently finished. There are three portraits that are 9x12 and two that are 12x12, obviously prices change with size, but let's not get ahead of myself. I have set up the data validation to recognize the sizes "9x12", "12x12", and "other" but I cannot get the corresponding painting names to match up to the sizes. I've tried every type of "INDIRECT" command I came across and still cannot get it to work! I downloaded the two data validation files on this thread and still can't get it to work! So, I've added my little bit to the original post and hopefully someone can help me understand where i'm going wrong. Let me know please.
    Attached Files Attached Files

+ 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