+ Reply to Thread
Results 1 to 9 of 9

Data validation list - restrict selection of 1 option in list (dependent)

  1. #1
    Banned User!
    Join Date
    09-26-2015
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    218

    Data validation list - restrict selection of 1 option in list (dependent)

    Hi all,

    In cell A1 I have a data validation list where a user selects a 'primary currency' e.g. "USD", "GBP", "EUR" etc.

    In cell B1 I want the user to select a 'secondary currency' using the same data validation list, but quite obviously the user should be prevented from making the same currency selection as in A1.

    Is there any way to set up the data validation in cell B1 such that it allows users to see the exact same list (including the 'primary currency' in cell A1), but prevents the user from selecting the same currency as in cell A1?

    Creating a dynamic data validation list is not an option since these selections recur on hundreds of rows below and hence would necessitate the creation of a dynamic list for each row, which is not an option.

    Regards,

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Data validation list - restrict selection of 1 option in list (dependent)

    It's easy to exclude the primary choice completely. I am not sure if it's possible to "see" it in column B, but not select it.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Banned User!
    Join Date
    09-26-2015
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    218

    Re: Data validation list - restrict selection of 1 option in list (dependent)

    Really? I thought it would be the other way round i.e. more difficult to omit it completely than to include it and prevent selection, hence my suggestion.

    Omitting it completely is far more ideal. Please can you assist?

  4. #4
    Banned User!
    Join Date
    09-26-2015
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    218

    Re: Data validation list - restrict selection of 1 option in list (dependent)

    Bump no response

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,303

    Re: Data validation list - restrict selection of 1 option in list (dependent)

    Administrative Note:

    We don't expect you to bump threads sooner than 24 hours after your last post or more than once a day - it has been only just over three hours since you last posted. Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it. Thanks for your understanding and patience.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  6. #6
    Banned User!
    Join Date
    09-26-2015
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    218

    Re: Data validation list - restrict selection of 1 option in list (dependent)

    Dear AliGW,

    Thank you for your message, although with the presumptuous undertones I would have appreciated a more private message, which is a courtesy I shall be extending to you soon enough.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Data validation list - restrict selection of 1 option in list (dependent)

    Hi. I haven't been around much recently.

    Try this out. There may be an "elephant in the room", however. How many ROWS do you want to apply this to?

    If it's what you want, I will explain. If it's not... then a bit more head-scratching will be required!!
    Attached Files Attached Files

  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
    53,050

    Re: Data validation list - restrict selection of 1 option in list (dependent)

    Stuart, FWIW, had I seen such a quick "bump" as yours, I would have responded in the exact same manner. All forums have rules and ours is no exception - all members are expected to abide by them.

    Thanks for the understanding
    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

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Data validation list - restrict selection of 1 option in list (dependent)

    Worksheet event is used
    Please Login or Register  to view this content.
    To paste the code
    Right click o sheet tab--> View Code.
    VB window opens
    Paste the code.
    Close VB widow.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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] If is error in data validation list - restrict to list
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-13-2019, 08:30 AM
  2. Replies: 1
    Last Post: 01-03-2019, 08:09 PM
  3. Replies: 1
    Last Post: 01-14-2018, 11:04 AM
  4. Replies: 18
    Last Post: 09-18-2013, 10:29 AM
  5. Data Validation List - Dependent on Adjacent Cell - Value from Unsorted List
    By justforthis1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-26-2013, 12:24 PM
  6. Replies: 2
    Last Post: 08-27-2012, 05:04 PM
  7. Replies: 4
    Last Post: 02-12-2012, 11:41 AM

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