+ Reply to Thread
Results 1 to 5 of 5

How do I make an absolute formula (not relative)?

  1. #1
    Forum Contributor
    Join Date
    04-11-2011
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    325

    How do I make an absolute formula (not relative)?

    I know about the difference between an absolute and relative REFERENCE... but I need to know if I can make a formula absolute.

    Absolute ex: $A$5
    Relative ex: A5

    Absolute ex: $C$6
    Relative ex: C6

    So I have a formula:
    =getPartNumber(A20, Z20)

    and all the cells are physically changing positions except for the cell I put this formula. And all the function inputs are automatically being updated. If I would change cell A20 and move it to A21 then the formula would look like...
    =getPartNumber(A21, Z20) and I don't want that.

    I want to be able to change any cell location without updating formulas.

    Is there a way to do this?

    Note: =getPartNumber($A$20, $Z$20) does not work.
    Last edited by 111StepsAhead; 04-15-2015 at 12:16 PM.

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: How do I make an absolute formula (not relative)?

    Please Login or Register  to view this content.
    Is that what you are talking about? As in, always point to A20 even when cells are cut or inserted?

    You could also do something like this and make it (slightly) less volatile.

    Please Login or Register  to view this content.
    Last edited by Whizbang; 04-15-2015 at 11:30 AM.

  3. #3
    Forum Contributor
    Join Date
    04-11-2011
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    325

    Re: How do I make an absolute formula (not relative)?

    Using Indirect() returns the error "A value used in the formula is of the wrong data type"

  4. #4
    Forum Contributor
    Join Date
    04-11-2011
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    325

    Re: How do I make an absolute formula (not relative)?

    I found an alternate solution to my problem:

    Because I am using a custom function I decided to just call my variables inside vba.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: How do I make an absolute formula (not relative)?

    Even when you split it up like this?

    Please Login or Register  to view this content.
    Without knowing the vba for getPartNumber(), I can't make better suggestions.

+ 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. How do i keep Column Absolute & make Row Relative in this Macro
    By DscvrnMyPotential in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-17-2014, 12:00 AM
  2. Make relative references absolute - many macros not working
    By martinpgibson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2013, 09:10 PM
  3. Excel: Cant copy an relative Cell and make absolute
    By themantheworldlovesmorethannathan in forum Excel General
    Replies: 1
    Last Post: 08-22-2006, 06:30 PM
  4. [SOLVED] Module to make all absolute references relative
    By Pro_D Mike in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2006, 01:45 PM
  5. make formulas from relative to absolute
    By Barmaley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2005, 02:06 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