+ Reply to Thread
Results 1 to 4 of 4

Replace a cell reference in a formula with dynamic reference

  1. #1
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Replace a cell reference in a formula with dynamic reference

    Hi - I want to change a cell reference in a formula to refer to the row of the active cell. For example

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I want to replace "28" with row()..something like


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I now how to do this in VBA, but is it possible to do in a standard formula?
    pls click the star if you liked my answer!

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Replace a cell reference in a formula with dynamic reference

    Hi jkj115,

    It's possible with the indirect formula.
    here's an example:

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Replace a cell reference in a formula with dynamic reference

    More context may be needed.

    My first guess at what you want is to use a combination of relative and absolute references =ROWS($G$28:G28). Note the use of an absolute reference to lock one part of the range reference, where the other part is relative. If you are unfamiliar with this most basic concept in spreadsheet programming, I recommend something like this: https://support.office.com/en-us/art...7-6350d512d2dc
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: Replace a cell reference in a formula with dynamic reference

    thanks GC excel that works

+ 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. [SOLVED] Creating the OFFSET formula with a dynamic reference cell
    By jmillikan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2015, 04:05 PM
  2. [SOLVED] inserting a formula with a dynamic cell reference
    By mashley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2015, 02:56 PM
  3. check formula integrity: replace dynamic cell reference with fixed value?
    By orchidee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-07-2013, 06:18 PM
  4. [SOLVED] Replace absolute cell reference with Indirect cell reference in formula
    By Roothy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-11-2013, 04:46 AM
  5. Dynamic Formula Ranges with reference to values in another cell
    By dunda1985 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-17-2011, 05:08 AM
  6. Replace name in formula with cell reference
    By narrowgate88 in forum Excel General
    Replies: 10
    Last Post: 09-15-2009, 12:10 PM
  7. Dynamic Cell Reference in VBA Formula
    By mworonuk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2009, 01:41 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