+ Reply to Thread
Results 1 to 13 of 13

Dependent List: select option or type text

  1. #1
    Registered User
    Join Date
    05-18-2017
    Location
    mexico
    MS-Off Ver
    Excel 2016
    Posts
    8

    Dependent List: select option or type text

    I would like your help with a timesheet.
    I followed this article to limit the choices in a drop-down list, so that it only shows items related to the selection in a previous cell. http://www.contextures.com/xlDataVal13.html
    Now, I need to add 3 new columns. Filling out the first column affects the options shown in the second column. Then, the option of the second column affects the options shown in the third column and so on. My problem is that the first two columns should also accept values that are not in the drop-down list.
    I'll try to explain myself.
    The 1st column is called Project. It should have the option of selecting Admin or typing the project name.
    The 2nd column is called Assignment Name.
    • If the user selected Admin in the 1st column then it should display the Admin Name options.
    • If the user DID NOT select Admin in the 1st column then it should be able to type the assignment name.
    The 3rd column is called Assignment Duration.
    • If the user selected an Admin Name option in the 2nd column then it should display the Admin Duration options.
    • If the user DID NOT select an Admin Name option in the 2nd column then it should display the Assignment Duration options, regardless of what they type for Project Name and Assignment Name
    The 4th column is called Assignment Type.
    • If the user selected an Admin Duration option in the 3rd column then it should display Admin Type options.
    • If the user DID NOT select an Admin Duration option in the 3rd column then it should display the Assignment Type options.
    The 5th column is called Assignment Task.
    • It should show only the options related to the selection of Assignment Type.
    The formula I use was for Data Validation:
    Assignment Type cells: =ValidationLists!D1:D7DEX(TypeColumn,MATCH(E60,TaskColumn,0)))
    Assignment Task cells: =OFFSET(TypeStart,MATCH(D60,TypeColumn,0)-1,1,COUNTIF(TypeColumn,D60),1)
    I’m trying to figure out is how to combine an IF NOT with the Data Validation because I don't what the names or how many for project name and assignment name will be. Is that even possible?

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Dependent List: select option or type text

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Dependent List: select option or type text

    Hi,

    Your question sounds like it is a Cascading Dropdown List question. ??

    http://www.bluepecantraining.com/por...ists-in-excel/
    or
    https://support.office.com/en-us/art...3-ACABACB76605
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    05-18-2017
    Location
    mexico
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Dependent List: select option or type text

    Simply Cascading list does not work. I'm trying to attached a file but the Go Advanced button is not letting me. The situation is that the user should be able to type or select. If the user typed an assignment name then it should show a drop-down list. If the user selected the Administration option for assignment name then it should display a different drop-down list.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Dependent List: select option or type text

    Hi mazcarate,

    Click on the "Insert Image" icon and select your file and then click just below that. See if that works for you to add an attachment/example.

  6. #6
    Registered User
    Join Date
    05-18-2017
    Location
    mexico
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Dependent List: select option or type text

    Sample book with comments about how it should work
    Dependent List.xlsx

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Dependent List: select option or type text

    Where/what are Assignment names?

    And "Project" is anything other than "Administration"?

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Dependent List: select option or type text

    I'm still trying to understand this problem...
    You have lots of Named Ranges with many duplicates, that is bad.

    Are you trying to use Validation Lists and have it NOT give an error if the word isn't in the list? Is that the main problem?

    I think you also want to add a new word to a list if it isn't already there..??

    Have you seen or heard of Dynamic Named Ranges, which will be part of your answer.

    http://www.ozgrid.com/Excel/DynamicRanges.htm
    http://www.contextures.com/xlNames01.html

    Is VBA allowed to try to answer your question?

  9. #9
    Registered User
    Join Date
    05-18-2017
    Location
    mexico
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Dependent List: select option or type text

    That is the problem. I don't have a list of Projects or Assignment names because they will be different for each user and they will be created as the year goes by.

    As for the name ranges, they are leftover from other articles I was following. I forgot to delete them.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Dependent List: select option or type text

    We need examples of where Project/Assignments "fit": make up some dummy data.

  11. #11
    Registered User
    Join Date
    05-18-2017
    Location
    mexico
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Dependent List: select option or type text

    Thank you very much for all your help.
    Dependent List.xlsx

  12. #12
    Registered User
    Join Date
    05-18-2017
    Location
    mexico
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Dependent List: select option or type text

    This is a better example of what I'm trying to do. My problem is that I don't know the name of the Projects or the Assignment Names. Each user should be able to input that information. I'm trying to make it easier to fill out and reduce user error that's why I would not want to give them access to the ValidationList worksheet.
    Example cascading lists.xlsx

  13. #13
    Registered User
    Join Date
    05-18-2017
    Location
    mexico
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Dependent List: select option or type text

    I was able to do it with a =IF(ISNUMBER(MATCH formula

    I created two lists for the options and use this formula: =IF(ISNUMBER(MATCH(A6,ValidationLists!A:A,0)),listAssignmentAdmin,listAssignment)
    If the A6 cell matches ValidationLists!A:A then if would should listAssignmentAdmin; if it does not match (0) then it shows listAssignment.

+ 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] Use VBA to select option from list box on webpage
    By meabrams in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2016, 11:00 PM
  2. 'Select all' option in a drop down list
    By james19 in forum Excel General
    Replies: 3
    Last Post: 03-12-2016, 11:14 AM
  3. Select option in HTML drop down list
    By JohnsonJiang in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-15-2014, 03:28 PM
  4. Replies: 18
    Last Post: 09-18-2013, 10:29 AM
  5. Replies: 1
    Last Post: 01-06-2012, 05:55 PM
  6. [SOLVED] How to choose a select-list option using VBA macro ?
    By tmp2100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2006, 01:55 PM
  7. [SOLVED] List Box Multi Select Option
    By ann_nyc in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-11-2005, 01: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