• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Dynamic dropdown list|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Dynamic dropdown list|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Dynamic dropdown list
sp_PrintTopic sp_TopicIcon
Dynamic dropdown list
Avatar
James Brown

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
March 6, 2021
sp_UserOfflineSmall Offline
1
March 11, 2021 - 5:57 pm
sp_Permalink sp_Print

Hello!

Attached is a simplified version of a rota spread sheet I’m working on. The full sheet would manage a rota over the course of a year for around 30 staff.

It’s not particularly graceful; however the way it should work is that in the ‘rota’ sheet A1-C10 lists each person for each day at work. If a person is not due in work that day someone will delete the user from the list. (This is somewhat automated but is simplified for the purposes of this question).

Using the formula you previously assisted with in another thread, a list is then produced of everyone working on a particular day in A15-C22 which automatically updates and removes blank cells.

This dynamic list is then copied to the ‘duties’ sheet in B15-D22. There is then a dropdown list using the dynamic list to assign each person to each role for each day.

My question is, is there a way to only allow a person to be assigned to one role each day? Could they be removed from the dropdown list so once they are picked for a role, they disappear from the list and can’t be selected again for that day?

I’ve seen this sort of thing done, however the methods I’ve seen use a second or third row of cells for referencing, which my sheet doesn’t have the room for.

A workaround I thought of is in row 13, which checks for duplicates in the postings. Ideally I’d like a way to only allow the user to select a person once each day.

Any ideas greatly appreciated. Thanks

sp_AnswersTopicSeeAnswer See Answer
Avatar
Lionel Baijot
Member
Members
Level 0
Forum Posts: 114
Member Since:
September 9, 2020
sp_UserOfflineSmall Offline
2
March 12, 2021 - 3:41 pm
sp_Permalink sp_Print

Hi James,

Here is the file with some adaptations (I give here the formulas in French because I am Belgian but they will adapt automatically when you open the file):

  • The list of people to choose from has been moved to J2. From this list, I created a custom range called 'All'. This is : =Duties!$J$3:$J$10.
  • Next, I have a list of choices that you have already made or will make. This range is called 'Choice' and is based on : =Duties!$B$2:$B$11.
  • And finally, I have column K which lets me know who hasn't been chosen yet. I use this formula in K3:
    =SI(LIGNES($1:1)<=NBVAL(All)-NBVAL(Choice);INDEX(All;PETITE.VALEUR(SI((NB.SI(Choice;All)=0);LIGNE(INDIRECT("1:"&LIGNES(All))));LIGNES($1:1)));"").
    This is a matrix formula to be validated with CTRL-SHIFT-ENTER.

    This list is used to create the 'Rest' range which is
    =DECALER(Duties!$K$3;;;SOMMEPROD(--(Duties!$K$3:$K$10<>""))).

Now you just have to open the file and make a choice in column B.

BR,

Lionel

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
3
March 12, 2021 - 9:19 pm
sp_Permalink sp_Print

Hi James

Here is my version.

You can copy the column in DUTIES and add as a new dates.

You will also need to add the staff on duty in ROTA.

You can hide the rows (row 14 onwards) with the formulas.

I would suggest you create a file for each month instead of the whole year as the array formula can be slow if there are too many columns.

Hope this helps.

Sunny

(Excel 2019)

sp_AnswersTopicAnswer
Answers Post
Avatar
James Brown

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
March 6, 2021
sp_UserOfflineSmall Offline
4
March 31, 2021 - 9:39 pm
sp_Permalink sp_Print

Thank you so much for your replies, this has really helped me get to grips with this issue.

 

I'm using the suggestions in the sheet now and hope to have it working ASAP.

 

You guys are the greatest,

 

James

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Ngoc Tinh
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Sopi Yuniarti
LAFONSO HERNANDEZ
Hayden Hao
Angela chen
Sean Moore
John Chisholm
Forum Stats:
Groups: 3
Forums: 24
Topics: 6215
Posts: 27248

 

Member Stats:
Guest Posters: 49
Members: 31897
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.