+ Reply to Thread
Results 1 to 10 of 10

Change relative references in formulas (in an area) into absolute

  1. #1
    Registered User
    Join Date
    04-15-2013
    Location
    Bukoba, Tanzania
    MS-Off Ver
    Excel 2007
    Posts
    9

    Change relative references in formulas (in an area) into absolute

    Hi,

    i have a large table - with relative references to the source table, and I need to change references into absolute (for all formulas at a go).


    F4 does not work in my laptop, neither FN/F4.

    Please give me a nice macro which can change references in a chosen/painted (or named) area

    1. from relative to absolute
    2. from absolute to relative

    Thank you

    Marjatta
    Last edited by marjattanb; 05-07-2016 at 07:15 AM.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Change relative references in formulas (in an area) into absolute

    A simple Google search... https://support.microsoft.com/en-us/kb/116028

    Surely that should have been the first option to try?

  3. #3
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Change relative references in formulas (in an area) into absolute

    Hi Marjatta,

    Is the F4 physically broken? Do any of the other "F" keys work?

    In my search to help answer your question I found:

    "F" Lock on keyboard
    https://support.microsoft.com/en-us/kb/894513

    Some function keys or keyboard shortcuts do not work correctly on a computer that is running Windows 7
    https://support.microsoft.com/en-us/kb/975741

    HP Notebook PCs - Disable The Fn + Function Key Combination on Certain Models
    http://support.hp.com/us-en/document/c02035108


    Personally I would try and figure out why the key isn't working properly.

    I tried using the macro suggested by @cytop. I don't think it is useful if you have a formula with a mix of relative/absolute references.

    Wish I had a better answer. Good luck.

  4. #4
    Registered User
    Join Date
    04-15-2013
    Location
    Bukoba, Tanzania
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Change relative references in formulas (in an area) into absolute

    Hi,


    F4 works OK but changes the screen to projector etc. Some of the sites you proposed suggests to press FN smmultaneously with F4 but in my Toshiba Satellite with Windows 8.1. it just does not work (neither in a few previous ones with 8.1. - I guess they were HP)

    This macro I was given is still running since the minute I gor the answer - rather slow.


    I once, a few years ago, placed the same question and got a shorter and quicker macro....lost into the sewers of crashed laptops. Unfortunately.

    Well, I'll keep waiting till the macro finishes my rather large area - maybe another 2 hrs?

    Marjatta

  5. #5
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Change relative references in formulas (in an area) into absolute

    rather slow.
    Other than saying "a large table", you gave no indication of the amount of data to be processed. 'Large' is a subjective term. Someone more used to working with 100 rows of data might call a 1,000 row table 'large' whereas it might be a 'small' table to someone else.

    With that in mind, I saw no reason to spend time writing faster, more optimised code, which might process a 'largish' table 5 seconds faster than the code on the Microsoft site.

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

    Re: Change relative references in formulas (in an area) into absolute

    Quote Originally Posted by marjattanb View Post
    I once, a few years ago, placed the same question and got a shorter and quicker macro
    Maybe this...

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

    Let's Go Pens. We Want The Cup.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Change relative references in formulas (in an area) into absolute

    Try this on a copy of our file.
    Select single range (Large or Small). Run this Macro.
    Code
    Please Login or Register  to view this content.
    This Will change formulas to absolute reference.
    If required select other range and proceed.

  8. #8
    Registered User
    Join Date
    04-15-2013
    Location
    Bukoba, Tanzania
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Change relative references in formulas (in an area) into absolute

    Hello,


    thanks to all who have tried to help me,

    I tried cytop's first hint - and in something like 5 hours it had got stuck at 54% of the table (or edit-area) of 280 rows x 311columns. Indeed this is not really large – but apparently too large for the macro…

    In addition to that, both this one (when tested on a small area), and the on by kvsrinivasamurthy and Tony's (1st answer/top macro – I don't find it though any more) handled the following formula correctly:

    "=IF('[SEMESTER I + SEMESTER II IN 2013-2014 _2013-2014 Cohort.xlsx]INPUT SEM I'!M127="","",UPPER('[SEMESTER I + SEMESTER II IN 2013-2014 _2013-2014 Cohort.xlsx]INPUT SEM I'!M127))"

    But:
    "=IF('[SEMESTER I + SEMESTER II IN 2013-2014 _2013-2014 Cohort.xlsx]INPUT SEM I'!L127="INC","-",IF('[SEMESTER I + SEMESTER II IN 2013-2014 _2013-2014 Cohort.xlsx]INPUT SEM I'!L127="-","-",ROUND(UPPER('[SEMESTER I + SEMESTER II IN 2013-2014 _2013-2014 Cohort.xlsx]INPUT SEM I'!L127),0)))" the "result" becomes #VALUE! = it destroys the original formula.

    Really, it seems I have to give up ;(,

    Marjatta N-B

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Change relative references in formulas (in an area) into absolute

    Is it possible to upload a sample file.

  10. #10
    Registered User
    Join Date
    04-15-2013
    Location
    Bukoba, Tanzania
    MS-Off Ver
    Excel 2007
    Posts
    9

    Thumbs up Re: Change relative references in formulas (in an area) into absolute

    Hi,
    thanks for sustained interest.

    It is rather hard to do that - the files are just too big - one email would not easily be enough and if I send separately, the cross-references would mix up. Actually I decided finally to use quite another
    process instead of a nice and "quick" macro.

    I believe I can use these macros I got here for some simpler tables in future - thank you all for contributions. It seems that the complicated formulas were too much (the simpler ones did all right after all...)

+ 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: 1
    Last Post: 12-26-2014, 06:05 PM
  2. How to for converting absolute references to relative references in formulas
    By edspyhill01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2014, 02:09 AM
  3. Replies: 4
    Last Post: 08-01-2012, 01:34 PM
  4. Replies: 1
    Last Post: 10-29-2009, 06:17 AM
  5. Change from absolute to relative References with Excel Macro.
    By antoni in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-14-2009, 02:43 AM
  6. Replies: 4
    Last Post: 07-30-2008, 11:19 PM
  7. Replies: 0
    Last Post: 11-15-2007, 02:39 AM

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