Closed Thread
Results 1 to 6 of 6

Creating a drop down menu that excludes certain values

  1. #1
    Registered User
    Join Date
    06-21-2023
    Location
    London, England
    MS-Off Ver
    Excel 2019 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    47

    Creating a drop down menu that excludes certain values

    Hello all,

    I am creating a dropdown list for the rota in columns B to E based on the range L3 to L20, but I would like it to exclude the values in the leave row for the same date.

    So far example, I would like Cell B2 to have a drop-down list with all of the initials from L3 - L20 excluding the initials from G2 and H2.


    Rota.png

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Creating a drop down menu that excludes certain values

    Post Deleted, Solution not compatible with the version of Excel used by OP
    Last edited by NeedForExcel; 12-05-2024 at 02:34 AM.
    Cheers!
    Deep Dave

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,904

    Re: Creating a drop down menu that excludes certain values

    While it can be done, I feel that it would be easier to just use conditional formatting to highlight selections that are on leave, as modeled in rows 9:11, so that they can be quickly changed.
    The CF rule is: =COUNTIFS($G3:$H3,B9) applied to $B$9:$E$11

    To get drop downs per date as modeled in rows 3:5
    1. Use the following formula to make lists as modeled in columns M:O
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. Produce a named range for each date column
    3. Use the following source for the drop downs: =INDIRECT("_"&SUBSTITUTE(TEXT($A3,"m/d/yyy"),"/","_"))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Registered User
    Join Date
    06-21-2023
    Location
    London, England
    MS-Off Ver
    Excel 2019 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    47

    Re: Creating a drop down menu that excludes certain values

    Hi. Thanks for the reply. That doesn't quite work as well as I would like but it is much better than before. Thank you for taking the time to explain it !
    Last edited by AliGW; 12-22-2024 at 09:14 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead. Please review the forum guidelines.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,707

    Re: Creating a drop down menu that excludes certain values

    I'm not sure I've interpreted this correctly. In fact I may have duplicated JeteMc's efforts, but I don't think so.

    In the attached please find these helper columns in M:O

    L
    M
    N
    O
    1
    2
    Intials
    Shift 1
    Shift 2
    Shift 3
    3
    KC
    SH
    KC
    KC
    4
    SH
    DS
    DS
    SH
    5
    DS
    SCP
    JKY
    DS
    6
    SCP
    ALS
    ALS
    SCP
    7
    JKY
    AT
    AT
    JKY
    8
    ALS
    TH
    TH
    ALS
    9
    AT
    OSE
    OSE
    OSE
    10
    TH
    FAD
    FAD
    FAD
    11
    OSE
    RB
    RB
    RB
    12
    FAD
    JK
    JK
    JK
    13
    RB
    KK
    KK
    KK
    14
    JK
    GA
    GA
    GA
    15
    KK
    WMO
    WMO
    WMO
    16
    GA
    JW
    JW
    JW
    17
    WMO
    SCX
    SCX
    SCX
    18
    JW
    JM
    JM
    JM
    19
    SCX
    20
    JM


    The formula in M3 is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy across and down until you get blanks.

    For the drop downs in B2 the list formula is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy B2 across to D2. Your drop downs should automatically adapt.
    Last edited by FlameRetired; 12-11-2024 at 08:05 PM.
    Dave

  6. #6
    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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,540

    Re: Creating a drop down menu that excludes certain values

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #2 about thread duplication.

    I am closing this thread, but you may continue here in the other thread: https://www.excelforum.com/commercia...in-values.html

    Thread closed in favour of the Commercial Services version.
    Last edited by AliGW; 12-22-2024 at 09:14 AM.
    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.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Creating a list from drop down menu
    By DEEARO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2022, 10:03 AM
  2. Creating a Drop Down Menu
    By JoeHan in forum Excel General
    Replies: 5
    Last Post: 11-29-2011, 11:29 AM
  3. Creating a Custom Drop Down Menu
    By CEC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2010, 02:10 PM
  4. Creating a drop down menu
    By djt in forum Excel General
    Replies: 3
    Last Post: 11-21-2009, 04:54 PM
  5. Creating Personal Menu Drop Down
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2009, 10:25 PM
  6. creating if forumula - with drop down menu
    By MarianCC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2007, 11:12 PM
  7. Creating a drop down like menu for row of cells?
    By the_OM in forum Excel General
    Replies: 2
    Last Post: 06-01-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