+ Reply to Thread
Results 1 to 4 of 4

Is Dynamic Addressing Possible?

  1. #1
    Registered User
    Join Date
    12-20-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    2

    Is Dynamic Addressing Possible?

    Hi,

    I'm wondering if there's a way to dynamically alter a formula that's displaying the address of a given cell.

    Right now I'm running the following formula: =ADDRESS(22,3,4)

    The issue is that it's a static formula. If I were to right now do an insert function above this it would continue to display that address, C22, which isn't what I'm looking for.

    What I want to do is that I want those numbers to increment every time I insert a whole new line above it, so it's displaying the correct address.

    IE: Right now it would display C22. But if I inserted a new line above it, I want it to increment and display C23, and so on and so forth.

    Is there a specific function, or a combination of functions I could use that could do this?

    Or is this beyond what Excel could do?

    Or better yet, has this problem been addressed before and there's a reference I could read?

    Thanks
    Last edited by ghazghkull; 12-21-2016 at 02:36 AM.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Is Dynamic Addressing Possible?

    Hi
    Try this
    Assuming your formula is in cell C30
    Give cell C30 a name e.g. ThisCell
    Link the row in your formula to the row of ThisCell:

    =ADDRESS(ROW(ThisCell)-8,3,4)


    This should add or subtract rows automatically to your formula when the row number of thiscell changes

  3. #3
    Registered User
    Join Date
    07-08-2016
    Location
    USA
    MS-Off Ver
    Office 365, Office 2016 for PC & Mac, Office 2013, Office 2011 Mac
    Posts
    80

    Re: Is Dynamic Addressing Possible?

    Hi ghazghkull,

    In the row and column inputs of address formula use row() and column() with a cell reference to update the address formula automatically as you insert new rows or columns.

    Please Login or Register  to view this content.
    Another possible solution:
    Please Login or Register  to view this content.

    DMG
    Last edited by dmg2016; 12-21-2016 at 12:16 AM.

  4. #4
    Registered User
    Join Date
    12-20-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    2

    Re: Is Dynamic Addressing Possible?

    Thanks for all help. I ended up using the Address formula that NickyC suggested, and combined it into an Indirect formula that I was working on.

    For anyone who's curious though, here's the formula I ended up using.

    =INDIRECT("'"&SHEETOFFSET(-1,$H$1)&"'!"&ADDRESS(ROW('Nov 16'!B22)-0,3,4))

    Some of the numbers of course are relevant to my worksheet, and the sheetoffset function was a macro that I found online to reference information on previous sheets, which has now been replaced with that indirect function that I just created. Although the sheetoffset still has its uses as I am still using it to reference the name of previous worksheets.

    Again, thanks for all the help!

+ 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. Addressing Help
    By felytle in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-09-2013, 07:05 PM
  2. cell addressing,
    By ptborders in forum Excel General
    Replies: 2
    Last Post: 02-17-2012, 06:19 PM
  3. Cell Addressing
    By gjblaha in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 06-17-2009, 01:41 PM
  4. [SOLVED] Relative addressing
    By DOGMA-DOT in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-13-2006, 05:50 AM
  5. [SOLVED] Cell addressing
    By Tomasz Klim in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2006, 10:30 AM
  6. [SOLVED] Addressing a UserForm sub in a VB dll
    By Mangesh Yadav in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-24-2005, 09:05 AM
  7. VBA Cell Addressing
    By Bill Martin -- (Remove NOSPAM from address) in forum Excel General
    Replies: 5
    Last Post: 03-16-2005, 06:06 PM
  8. [SOLVED] Relative Addressing
    By Bill Martin -- (Remove NOSPAM from address) in forum Excel General
    Replies: 4
    Last Post: 02-20-2005, 01:06 AM

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