+ Reply to Thread
Results 1 to 3 of 3

Formula to susbtitute a word with another word via LOOKUP

  1. #1
    Registered User
    Join Date
    08-18-2020
    Location
    Valencia
    MS-Off Ver
    Mac excel - Office 365 - v 16.72
    Posts
    61

    Formula to susbtitute a word with another word via LOOKUP

    I'm sorry that the description is so bad. I will try to elaborate with an example.
    1 - Educational platform. I have thousands of sentences like the one below.
    2 - I need to be able to substitute the word "achieved" by the word GAP.
    3 - I need the word GAP because in our php/mysql set up we then substitute GAP for (............) or many other formats.
    4 - I need a LOOKUP ie: the answer, achieved, is lookedup in the question, and GAP is substituted.
    You may be wondering why I don't just add the My daughter GAP or (............) from outset. This is because the same sentence is used for many different types of exercises.
    I have a sentence arranger, gap fills, multiple choice, matching two halves etc... so I need the complete sentence.

    My daughter achieved high marks in her exams, because she makes an effort to study as often as possible. (question column) achieved (answer column)
    needs to be converted to
    My daughter GAP high marks in her exams, because she makes an effort to study as often as possible.

    I need to apply the same formula to 100-1000 sentences. So would I need a macro or just create the formula for one row then apply to the sheet?
    Thanks in advance.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Formula to susbtitute a word with another word via LOOKUP

    You can use the SUBSTITUTE function for this, i.e. in B2:

    =SUBSTITUTE(A2," achieved ","GAP")

    assuming your data starts in A2. Copy down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    08-18-2020
    Location
    Valencia
    MS-Off Ver
    Mac excel - Office 365 - v 16.72
    Posts
    61

    Re: Formula to susbtitute a word with another word via LOOKUP

    Amazing and so quick.
    I had to use ; and not commas btw.
    =SUBSTITUTE(M1;N1;"GAP")

    Thank you so much. These kinds of formulas are going to save us days literally.

+ 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] formula to convert specific word alphabet in a word to upper case only
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2020, 01:19 PM
  2. [SOLVED] Formula Help Pls - Search cell for WORD, return fields from WORD lookup
    By tomski777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2017, 12:02 AM
  3. Excel VBA - Word to search for part of a word and replace full word
    By charlie543 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2016, 02:56 AM
  4. Excel formula switch first and Second word but keeps 3rd and remaining word in single cell
    By iwanttoexcelinexcel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-29-2015, 04:22 PM
  5. [SOLVED] Changing SUMIFS formula from word to word in a cell location
    By Car7os in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2013, 06:43 AM
  6. [SOLVED] Lookup Word formula
    By Koda7 in forum Excel General
    Replies: 3
    Last Post: 06-26-2012, 03:39 PM
  7. Replies: 2
    Last Post: 08-16-2011, 12:08 PM

Tags for this Thread

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