+ Reply to Thread
Results 1 to 5 of 5

Need to Find All Cells Containing "Word" and Replace With "Other Word" from Cell Below?

  1. #1
    Registered User
    Join Date
    03-05-2016
    Location
    Uk
    MS-Off Ver
    Excel 2013
    Posts
    2

    Smile Need to Find All Cells Containing "Word" and Replace With "Other Word" from Cell Below?

    Hi Guys,

    My excel skills are extremely limited so I'm hopeful this is a relatively straightforward formula needed.

    I've got a series of large spreadsheets. What I want to be able to do with a particular column is to find all instances of a particular word, let's say "example" and in every cell where that is found it replace this with the word in the cell directly below that (it can only be one of 3 words)

    So

    example
    red
    example
    blue
    example
    green
    blue
    green
    green


    Would become

    red
    red
    blue
    blue
    green
    green
    blue
    green
    green

    The word that I'm searching for is scattered through thousands of entries and appears in no pattern so it's got to be able to search for all uses of it and when it finds it just replace with the contents of the cell directly below it


    Hope this makes sense, and I'd really appreciate any help with this!

    Thanks!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need to Find All Cells Containing "Word" and Replace With "Other Word" from Cell Below

    One way...

    Data Range
    A
    B
    1
    example
    red
    2
    red
    red
    3
    example
    blue
    4
    blue
    blue
    5
    example
    green
    6
    green
    green
    7
    blue
    blue
    8
    green
    green
    9
    green
    green


    This formula entered in B1 and copied down:

    =IF(A1="Example",A2,A1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Need to Find All Cells Containing "Word" and Replace With "Other Word" from Cell Below

    Or if you are open to a VBA solution, in the attached click the button on sheet1 to run the code.
    The code will ask you to select a target range on the sheet and to input a word which is to be replaced from the selected range.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    03-05-2016
    Location
    Uk
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Need to Find All Cells Containing "Word" and Replace With "Other Word" from Cell Below

    Thanks so much for that guys, really appreciate it

    2nd method seems to be doing the trick, just applying it now!

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Need to Find All Cells Containing "Word" and Replace With "Other Word" from Cell Below

    You're welcome. Glad we could help.

    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

+ 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. Find a word "screenshot" and print value "yes" in adjacent Column
    By prat123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-21-2015, 03:04 PM
  2. Replies: 12
    Last Post: 06-12-2014, 02:11 PM
  3. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  4. [SOLVED] Formula Needed to fill multiple cells with "No" when the word "No" is entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 05:36 PM
  5. If cell contains "word" then replace with "these words"
    By yellow281 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2013, 07:19 PM
  6. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  7. Replies: 2
    Last Post: 08-02-2011, 06: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