+ Reply to Thread
Results 1 to 4 of 4

Need to get cell address and insert formula reference to it

  1. #1
    Forum Contributor
    Join Date
    08-31-2021
    Location
    Kassel, Germany
    MS-Off Ver
    365 v2308
    Posts
    187

    Need to get cell address and insert formula reference to it

    Hi all, in the sample file, I have a column of values on Sheet1.
    On Sheet 2, I have a column that references the column on Sheet1.
    I'm looking for some code that, given the lookup value (in this case AB02, which is on cell Sheet1!B4), would insert in cells Sheet2!B11:B14, the formula =Sheet1!B$4.

    All suggestions appreciated. TIA, Paul
    Attached Files Attached Files

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

    Re: Need to get cell address and insert formula reference to it

    Sheet2, B3:B6 = "AB01"
    Sheet2, B7:B10 = "AB05"
    Sheet2, B11:B14 = ???
    How we know it will be "AB02"?
    If there was no rule, just input: "AB02" in B11:B14
    ???
    Quang PT

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552

    Re: Need to get cell address and insert formula reference to it

    Quote Originally Posted by paulma1960 View Post
    I'm looking for some code that, given the lookup value (in this case AB02, which is on cell Sheet1!B4), would insert in cells Sheet2!B11:B14, the formula =Sheet1!B$4.
    Simple exsmple
    Please Login or Register  to view this content.
    Last edited by jindon; 09-09-2022 at 12:28 AM.

  4. #4
    Forum Contributor
    Join Date
    08-31-2021
    Location
    Kassel, Germany
    MS-Off Ver
    365 v2308
    Posts
    187

    Re: Need to get cell address and insert formula reference to it

    @jindon, thanks, that works fine. I modified the code as follows:

    Please Login or Register  to view this content.

+ 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. If formula not updating cell reference when insert row
    By J-finity in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-07-2022, 11:27 AM
  2. [SOLVED] Formula that returns address of a cell reference
    By mansfin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2016, 12:21 PM
  3. Incrementing cell reference within formula upon a new row insert within a table
    By m_arkle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2014, 04:16 PM
  4. Insert cell value as part of address in formula
    By Deutz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2012, 09:02 PM
  5. Convert text address to cell reference address
    By shaod in forum Excel General
    Replies: 1
    Last Post: 12-23-2011, 01:37 AM
  6. Replies: 2
    Last Post: 07-14-2011, 03:16 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