+ Reply to Thread
Results 1 to 14 of 14

Quickest way to fix cell references

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Quickest way to fix cell references

    Morning,

    I have a row of cells A1:NN1, with each cell having a long formula with non fixed cell references ie no dollar signs in the formula. Is there a way to automatically, possibly with macro, fix every cell references in this row?

    Thanks!
    Last edited by brad999; 04-16-2014 at 09:25 AM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Quickest way to fix cell references

    try find/replace (ctrl-H)
    Quang PT

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Quickest way to fix cell references

    Sorry I forgot to mention that every cell reference is different, so couldn't really use find replace

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Quickest way to fix cell references

    Hi,

    It still might be possible using Find & Replace, though it would be helpful to see an example of the formulas in question.

    Are all the formulas in that range at least consistent, i.e. they are of the same form and function, though differ only in the cells which they reference?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Quickest way to fix cell references

    The formulas are consistent yes, only the cell references that differ,

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Quickest way to fix cell references

    And would it be possible to see just one of these formulas? Obviously replace any confidential/sensitive information with dummy data if necessary, though as long as everything else remains unchanged.

    Regards

  7. #7
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Quickest way to fix cell references

    Attached file has the formulas, don't worry about the n/a, just need to fix all cell references automatically! thanks
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Quickest way to fix cell references

    Would it be possible with some kind of macro having I = a-nn, find I replace with $I$

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Quickest way to fix cell references

    Hi,

    You simply want every single range reference in those formulas to remain the same, but to be made absolute, with respect to both rows and columns?

    Regards

  10. #10
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Quickest way to fix cell references

    Yes exactly

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

    Re: Quickest way to fix cell references

    There's a macro here:

    http://tinyurl.com/ChangeCellRefs
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  12. #12
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Quickest way to fix cell references

    Perform the following four Find & Replaces (with Replace All) on that range:

    Find what: 'Sheet 1'!
    Replace with: Sheet 1'!$

    Find what: 10
    Replace with: $10

    Find what: :
    Replace with: :$

    Find what: 9000
    Replace with: $9000

    Regards

  13. #13
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Quickest way to fix cell references

    Excellent, thanks to you both!!

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

    Re: Quickest way to fix cell references

    You're welcome. We appreciate the feedback!

+ 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. Replies: 0
    Last Post: 02-11-2013, 08:12 AM
  2. Quickest way to get code onto every sheet?
    By kirsty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2010, 08:50 PM
  3. Quickest way to input formulas?
    By Aoife101 in forum Excel General
    Replies: 2
    Last Post: 07-20-2006, 08:50 AM
  4. Replies: 1
    Last Post: 05-24-2006, 01:25 PM
  5. Quickest Way of making an Array
    By WhytheQ in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-20-2006, 02:15 PM

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