+ Reply to Thread
Results 1 to 7 of 7

Troubleshooting =Indirect(Substitute(A4:A:8," ","_"))

  1. #1
    Registered User
    Join Date
    07-25-2020
    Location
    La Pêche, QC
    MS-Off Ver
    MS Office 16.30
    Posts
    4

    Question Troubleshooting =Indirect(Substitute(A4:A:8," ","_"))

    Hello,

    *SOLVED* 2 solutions provided

    I would like to have dependent drop-down menus.
    I have one column for THEMES and another for TASKS. The tasks are associated to themes. I should get a different list of tasks for each theme I select.

    So far, I would say that I have 90% of the solution.
    I created my THEMES column, cell A4:A8, using the classic drop-menu. There are 13 themes.
    I have created my TASKS column, cell B4:B8, using Formulas-Create from Selection and Data Validation List.

    It works for the most part. Here is the problem: only 11 of 13 themes work. I mean that only 11 of the 13 drop-down menus of tasks associated to themes appear. I cannot see the first theme, which is SELECT, nor can I see the last, which is RESEARCH. (See attached)
    Attached Files Attached Files
    Last edited by AliGW; 07-27-2020 at 12:09 PM. Reason: Solved tag added - no need to edit thread title or add solved to post. Thanks.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Troubleshooting =Indirect(Substitute(A4:A:8," ","_"))

    Please use Data validation list at B4

    =OFFSET($E$3,,MATCH(A4,$E$2:$Q$2,)-1,COUNTIFS(INDEX($E$3:$Q$13,,MATCH(A4,$E$2:$Q$2,)),"*??"))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-25-2020
    Location
    La Pêche, QC
    MS-Off Ver
    MS Office 16.30
    Posts
    4

    Re: Troubleshooting =Indirect(Substitute(A4:A:8," ","_"))

    Thank you for your attempt, Bo_Ry

    1) I do not understand the =Offset function you are recommending
    2) Also, I'm not sure if I missed something, but I looked at your solution and I can no longer choose a theme in cell A4:A8 or the associated tasks, all that is available to me is a drop-down menu with the word select as a choice.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Troubleshooting =Indirect(Substitute(A4:A:8," ","_"))

    I have no idea why you can't choose a theme
    Image below is from file in post #2

    DV.jpg

  5. #5
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Troubleshooting =Indirect(Substitute(A4:A:8," ","_"))

    cocottelabroue
    you use option with named range but range was named "Research" and "Research " in the a4. After substitute it will be "Research_" so the method is ok but data for first list is wrong. you can correct data or use TRIM function
    =Indirect(Substitute(trim(A4:A8)," ","_")) also a4:a8 is working but =Indirect(Substitute(trim(A4)," ","_")) better.

    Offset is recommended only because the options use simple ranges without any name and it easy manage and create dynamic lists.

  6. #6
    Registered User
    Join Date
    07-25-2020
    Location
    La Pêche, QC
    MS-Off Ver
    MS Office 16.30
    Posts
    4

    Re: Troubleshooting =Indirect(Substitute(A4:A:8," ","_"))

    Bo_Ry!!! I looked it over again, and it worked! I guess the problem was between the screen and the chair.
    Thank you.

  7. #7
    Registered User
    Join Date
    07-25-2020
    Location
    La Pêche, QC
    MS-Off Ver
    MS Office 16.30
    Posts
    4

    Re: Troubleshooting =Indirect(Substitute(A4:A:8," ","_"))

    BMV! Thank you. Your formula was a little easier for a newbie like me to understand. Although Bo_Ry's formula worked, I was unable to reproduce it in my original document for my lack of knowledge and skill. Too complicated.

+ 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. How to nest an "if", "substitute", "find and replace" commands
    By deeqson12 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 04-15-2020, 06:15 PM
  2. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  3. How to Substitute "11" with "11th" without ending up with "11th11th"?
    By bcianni in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-21-2019, 03:20 PM
  4. Need help in using =INDIRECT(SUBSTITUTE($H3," ","_")) formula
    By enterdelete123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2018, 01:39 AM
  5. [SOLVED] Help on "IF", "FIND", "SUBSTITUTE", & "LEFT/RIGHT" FUNCTIONS
    By pooja135 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-20-2018, 03:56 PM
  6. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  7. Replies: 5
    Last Post: 06-26-2006, 09:23 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