+ Reply to Thread
Results 1 to 3 of 3

Find/Replace with references

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2007
    Posts
    43

    Find/Replace with references

    I have a column of about a hundred referenced cells that currently look like this:

    =Actual2012!J7+Actual2012!T7+Actual2012!Z7

    and i want to find/replace the first two 'Actual2012' cells to just one, giving the formula as follows:

    =Actual2012!W7+Actual2012!Z7


    Is it possible to use find and replace to change the J and T column references to a single W column reference while staying with the row references of 7 through 120 (i cannot just drag down because there are random formulas in the column that would be overwritten).

    I am just wondering if this can be accomplished strictly through Find/Replace.

    Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    10-17-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013, 2016, 2019, 365
    Posts
    294

    Re: Find/Replace with references

    Hi, there's only one way I can think of doing this.

    Firstly, do a find/replace finding Actual202!J?+Actual2012!T? (the question marks are placeholders for single characters), and replacing it with a range name, i.e. just a bit of text such as Column_W. you'll have to do the same with ?? and ??? in both references, to cover the two-digit and 3-digit row numbers. You'll end up with a load of #NAME? errors.

    Now, did you know that named ranges can refer to RELATIVE cell references? All we have to do, is select the formula in row 7 that's giving the first error, and then go to Formulas tab > Defined Names Group > Define name. Create a name definition for Column_W, but in the 'refers to' box, type =Actual2012!W7 (notice no dollar signs!).

    You should now find that those errors magically turn to the answer you want...
    Kind Regards,

    Out of the Hat

    "Computers are stupid - they do EXACTLY what you tell them to"

    If I've helped you with a problem, please say thanks by clicking the small star icon on the left.

  3. #3
    Registered User
    Join Date
    11-17-2011
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Find/Replace with references

    thanks for the response, i will have to look into this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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