+ Reply to Thread
Results 1 to 4 of 4

Indirect "Substitute(Substitute(" not working for multiple spaces

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Indirect "Substitute(Substitute(" not working for multiple spaces

    Col B has a Dynamic list of Categories.

    Col D has a Dynamic List of elements for the first Category ("Physical and organoleptic requirements").

    I can select the Category from the DropList in G2, which should then populate the Dependent DropList in G4.

    Because there are multiple spaces in the Category Name I know normal "Indirect(Substitute" won't work

    Tried the following formula in G4, but doesn't work either:

    =INDIRECT(SUBSTITUTE(SUBSTITUTE(G2," ","")))

    All solutions, suggestions and pointers welcomed as ever

    Ochimus

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,370

    Re: Indirect "Substitute(Substitute(" not working for multiple spaces

    Rather than using INDIRECT function i'm just using simple INDEX and MATCH formula:

    =INDEX($D$2:$D$6,MATCH($G$2,$B$2:$B$6,0))

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,084

    Re: Indirect "Substitute(Substitute(" not working for multiple spaces

    Using Tables
    with =INDIRECT(SUBSTITUTE(G2," ","_"))

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Indirect "Substitute(Substitute(" not working for multiple spaces

    Excel doesn't like dynamic named ranges in conjunction with INDIRECT/SUBSTITUTE to create dependent drop down lists so you can use tables to create the dynamic range in stead.

    EDIT: Fluff13's solution is the same as mine. Pipped to the post before I could add my attachment!

    BSB

+ 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. 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
  2. [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
  3. iferror / indirect substitute not working?
    By nimv1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-24-2016, 09:33 PM
  4. Replies: 4
    Last Post: 10-28-2014, 11:04 PM
  5. [SOLVED] How to insert + sign in front of every word =Substitute(A3," "," +")
    By inayet in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-16-2013, 09:41 PM
  6. =indirect(substitute(b5," ",""))
    By jloyzaga in forum Excel General
    Replies: 2
    Last Post: 07-08-2009, 06:30 PM
  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