+ Reply to Thread
Results 1 to 6 of 6

Crew List, duplicated values based on dropdown validation

  1. #1
    Registered User
    Join Date
    03-10-2014
    Location
    United Kingdom
    MS-Off Ver
    Office 365 (2016)
    Posts
    9

    Crew List, duplicated values based on dropdown validation

    Good Afternoon,

    I'm having some problems creating a crew list, i have attached the base spreadsheet "crew august 5", i have highlighted in Blue where i wanted to pace the validation, and i have the employee list in column M - I have tried placing the Custom validation below but it still allows me to type duplicates.

    =COUNTIF(D5:J13,D5)=1
    I think this was a bust so i moved on



    What i was trying to do was have a dropdown in each cell to select an employee but not allow any duplicates on vessels going forward, i tried to get around this by using the advice on this page (i have uploaded the spreadsheet Crews August to show how i have done this) - *Edit* i can't post links i'm told so i have edited this part out

    I managed to get it count the row number by using

    =IF(COUNTIF(D5:J13,P5)>=1,"",ROW())
    From this i was able to create an unused employee list by using

    =IF(ROW(P5)+1-5>COUNT(Q$5:Q$38),"",INDEX(P:P,SMALL(Q$5:Q$38,ROW(P5)+1-5)))
    By this point i was quite happy with myself so i applied the validation to only use available crew members on the crew cells (highlighted in blue on the spreadsheet)

    =OFFSET($Q$41,0,0,COUNTA($Q$41:$Q$74)-COUNTBLANK($Q$41:$Q$74),1)
    But this is when it fell apart as the drop down list only worked in Alphabetical order ie. if i start by using Alan S and then Alan B it works, but if i start with lets say Carlos it won't remove him from the unused list

    At this point i'm at a loss, i might be going about this the completely wrong way, or it might just be a simple matter of me incorrectly understanding the formulas/validation

    I do apologise for the long winded post i sat there for a while and wasn't sure how best to word it so people understood me, any questions please let me know but i'm sure it's just me missing something simple.

    Lee McAdam
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Crew List, duplicated values based on dropdown validation

    =iferror(index($q:$q,aggregate(15,6,row($q$5:$q$64)/($q$5:$q$64<>""),rows($q$5:$q5))),"")
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-10-2014
    Location
    United Kingdom
    MS-Off Ver
    Office 365 (2016)
    Posts
    9

    Re: Crew List, duplicated values based on dropdown validation

    Thanks very much Tim, smarter man then me, didn't even think of that

  4. #4
    Registered User
    Join Date
    03-10-2014
    Location
    United Kingdom
    MS-Off Ver
    Office 365 (2016)
    Posts
    9

    Re: Crew List, duplicated values based on dropdown validation

    Thanks for all the help so far all, i have been asked to make one more change if possible, when filling in the holiday/training rows i need it to remove any crew/employees from the captain/mate/engineer/deckhand rows if duplicated.

    As the above formula is a bit out of my league i'm not sure if this is going to be possible, is there anything you can suggest?

    Lee

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Crew List, duplicated values based on dropdown validation

    apply a source for them from P:P

  6. #6
    Registered User
    Join Date
    03-10-2014
    Location
    United Kingdom
    MS-Off Ver
    Office 365 (2016)
    Posts
    9

    Re: Crew List, duplicated values based on dropdown validation

    Sorry Tim,

    I realise i'm probably being a bit silly here, do you mean replace the data validation on them cells?

+ 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] Insert Picture(S) based on dropdown validation list
    By Rob1970 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-23-2018, 04:32 PM
  2. [SOLVED] select multiple values from a cell data validation list dropdown
    By SKooLZ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2017, 08:15 PM
  3. VBA to time stamp cells whose values are derived from a data validation dropdown list
    By Natures_Gift in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2016, 06:44 PM
  4. Replies: 3
    Last Post: 11-13-2015, 05:10 AM
  5. Cross Reference (Vlookup) based on Data Validation List Dropdown
    By eguirocker3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2014, 05:02 PM
  6. [SOLVED] Select item of a dropdown list (data validation) and refreshes values of all pivot tables
    By siroco79 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 03-06-2014, 05:35 AM
  7. Validation rule dropdown list without duplicate values
    By sakinen in forum Excel General
    Replies: 9
    Last Post: 05-08-2013, 08:56 AM

Tags for this Thread

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