+ Reply to Thread
Results 1 to 6 of 6

Substitute using a named list

  1. #1
    Registered User
    Join Date
    07-18-2018
    Location
    Bangkok
    MS-Off Ver
    2016
    Posts
    68

    Substitute using a named list

    Is there a way to use Substitute together with Match finding what to substitute from a named list, or another solution

    This is what I have tried with no good result

    SUBSTITUTE(A15;MATCH(A15;Exception;1);"@")

    A15=044108 0584C. (Racing) When mounting on Diesel models the original hanger (part no 6Q0 253 144F) & the 2 original bolts (part no N0195269) must be used
    All the parts in brackets are in a list named Exception

    And the result im looking for is = 044108 0584C. @ When mounting on Diesel models the original hanger @ & the 2 original bolts @ must be used

    Thx

    Henrik

  2. #2
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    667

    Re: Substitute using a named list

    #1 instead of ; use ,
    #2 is the Named list one column?

    I am thinking you need to replace the Match with Index and Match

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Substitute using a named list

    @ Crimedog, I have a feeling, due to regional settings, Bangkok uses ; instead of ,

    @ Hnorgaar perhaps it would help if you could upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-18-2018
    Location
    Bangkok
    MS-Off Ver
    2016
    Posts
    68

    Re: Substitute using a named list

    Basically what Im looking for is NOT to use Substitute(Substitute(Substitute etc, as the strings to substitute for, can grow, now Im looking for 8 strings.

    1. Im am using ; due to regional settings
    2. I will do that as soon as possible

    Henrik

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Substitute using a named list

    OK thanks, we will await your sample file

  6. #6
    Registered User
    Join Date
    07-18-2018
    Location
    Bangkok
    MS-Off Ver
    2016
    Posts
    68

    Re: Substitute using a named list

    Hi again

    As I said, im trying to find a better and easier formula for column B, my tries is in column C. and is not working
    All the possibilities will be in the list in sheet Exceptions and have a name, "Exception".
    Hope this inf is enough

    Thx for your time

    Henrik
    Attached Files Attached Files
    Last edited by Hnorgaar; 08-04-2018 at 03:21 AM.

+ 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] INDIRECT SUBSTITUTE refering to a dynamic list
    By Frankie_The_Flyer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-28-2017, 07:24 PM
  2. [SOLVED] INDIRECT SUBSTITUTE Referin to a dynamic list
    By Frankie_The_Flyer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2017, 05:22 AM
  3. Replies: 4
    Last Post: 10-28-2014, 11:04 PM
  4. Substitute a value in a pull down list from a lookup table
    By bridget_in_muc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-11-2014, 09:32 AM
  5. [SOLVED] Best Way To Substitute Text From Drop Down List?
    By tradersteve in forum Excel General
    Replies: 4
    Last Post: 10-19-2010, 01:14 AM
  6. Substitute parts of Entries by criteria list
    By Raph81 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-08-2010, 10:34 AM
  7. Renaming a named list or Adding to a named list
    By torontoguy in forum Excel General
    Replies: 7
    Last Post: 01-16-2009, 03:10 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