+ Reply to Thread
Results 1 to 3 of 3

Search and Replace Text with a formula and adjacent cell with a formula

  1. #1
    Registered User
    Join Date
    03-19-2015
    Location
    VT
    MS-Off Ver
    2010
    Posts
    2

    Search and Replace Text with a formula and adjacent cell with a formula

    Using 2010

    I found this post, that does what i want to do in theory:

    http://www.excelforum.com/excel-prog...cent-cell.html

    And it works when I use text. When I use a formula it starts to change things but hangs and never returns.

    I have a worksheet called key, that has two columns. I want to replace other worksheets with values from this column. For example, any cell that has the word Arizona should become =key!A2 and the cell to its right should become =key!B2. Here is the code that works fine until I use formulas. I'm hoping somebody could help me out, and maybe even make it run against all worksheets

    Please Login or Register  to view this content.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Search and Replace Text with a formula and adjacent cell with a formula

    Which formulas aren't working for you? I ran the code above with minimal change and it nothing unexpected occurred.

    Please Login or Register  to view this content.

    Each of my Arizonas and Virginias on each worksheet changed to references to Sheet1
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    03-19-2015
    Location
    VT
    MS-Off Ver
    2010
    Posts
    2

    Re: Search and Replace Text with a formula and adjacent cell with a formula

    Oddly enough, if the cell that i'm referencing is populated it appears to hang. If it is empty it works fine, then i fill in the reference cell....

+ 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. Formula to search for one word in adjacent cell
    By ZeDoctor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-08-2014, 06:12 AM
  2. Replies: 2
    Last Post: 11-19-2013, 11:49 AM
  3. Formula to identify part of a text in cell from range of cells & insert adjacent cell text
    By Novicebutnotforlong in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-19-2013, 02:11 AM
  4. [SOLVED] Formula to search from keyword list and return adjacent cell
    By Ninja2k in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2013, 08:44 AM
  5. Formula to return text in adjacent cell
    By Jack B in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2007, 09:31 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