+ Reply to Thread
Results 1 to 2 of 2

Multiple mass substitute help!

  1. #1
    Registered User
    Join Date
    09-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    12

    Multiple mass substitute help!

    Hi Guys,

    I can normally find a solution on this fantastic forum, however today I need to ask for your expertise! I am self taught and not a whiz with macros but can manipulate them with instructions :-)

    PROBLEM:
    I have a MASSIVE excel sheet where I need to replace varying parts of text strings e.g.

    "cat > dog / rat" needs to become "cat > dog / MOUSE"

    Now, I have a 2 column list to specify the changes that need to be made. My solution WOULD be to use the SUBSTITUTE formula to individually replace each word/phrase with its equivalent change e.g.
    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,B1,C1),B2,C2),B3,C3),B4,C4)

    Although this method works perfectly, I suspect that this will exceed excel's limitations as I have about 1,000 rows that would need to be included in the formula.

    Does anyone know of a way that I can achieve my this? Basically changing the contents of cell A1 with a vlookup/index find and replace method. Please find an example document attached.

    I would ideally prefer a formula, although if you can guide me through a macro this would also be very appreciated.

    Many thanks,

    J
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Multiple mass substitute help!

    AHA!

    I found a close response to my question!

    Oscar from Get Digital Help http://www.get-digital-help.com/2013...t-strings-vba/) posted an excellent macro/formula solution to "Substitute multiple text strings (vba)". The problem I have with this though, is that I have duplicate words that need replacing e.g.

    Capture.PNG

    Where "PYJAMAS > ATMOSPHERES > HOT" needs replacing, it will replace the first instance of "ATMOSPHERES > HOT" and replace the text with "ATMOSPHERES 01" instead of "ATMOSPHERES 11".

    Can anyone think of a way to adjust the macro or formula to account for similar strings in the list?

    Please find my example sheet attached! Substitute-existing-text-with-multiple-text-strings-in-a-cell-range_RESOLUTION.xlsm

    Thanks,

    J

+ 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. Mass Create Multiple Graphs from data on different tab
    By evoganski in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-07-2013, 12:52 PM
  2. [SOLVED] Using SUBSTITUTE for multiple items
    By psychedelic in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-18-2012, 09:20 PM
  3. Multiple Character Substitute Formula
    By IanE78 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2012, 11:02 AM
  4. Help with multiple Substitute formulas, I think??
    By chris0228 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-09-2012, 02:50 PM
  5. Multiple substitute question.
    By luxgap in forum Excel General
    Replies: 4
    Last Post: 03-31-2010, 03:57 AM

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