+ Reply to Thread
Results 1 to 3 of 3

Formula to include spaces in linked data validation list

  1. #1
    Registered User
    Join Date
    10-10-2011
    Location
    Cardiff
    MS-Off Ver
    Excel 2010
    Posts
    8

    Formula to include spaces in linked data validation list

    Hi
    I have a spreadsheet with 2 linked data validation comboboxes. A ws_change function runs depending on the selection from cbo2 ,to populate a named range table.(I've attached a simplified example with further info)
    In cbo2, I've used the INDIRECT feature with a substitute formula to replace the underscores from the named range in cbo1.
    However, the selection for cbo2 has spaces ie Dept 1a (can be replaced with underscores if necessary) so to enable the ws_change to run, I have to delete the spaces, ie Debt1a
    Is there a way to include the spaces in List 2? I've tried a nested substitute formula but with no success.

    Any assistance will be greatly appreciated
    I am trying to teach myself excel/vba so apologies for any incorrect terminology
    regards
    Attached Files Attached Files
    Last edited by hbomb1927; 10-25-2011 at 07:01 PM. Reason: Resolved

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula to include spaces in linked data validation list

    maybe this will work

    Please Login or Register  to view this content.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-10-2011
    Location
    Cardiff
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Formula to include spaces in linked data validation list

    Hi Martin

    That works perfectly. Thankyou

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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