+ Reply to Thread
Results 1 to 8 of 8

Alternative to INDIRECT for dynamic worksheet references

Hybrid View

  1. #1
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Alternative to INDIRECT for dynamic worksheet references

    When you make a change in column A, a formula will be inserted/updated in that row of column B.

    Private Sub Worksheet_Change(ByVal Target As Range)
    
       Dim Cell As Range
       
       For Each Cell In Target
       
          If Cell.Column = 1 Then
             Cells(Cell.Row, "B").Formula = "=INDEX('" & Cell & "'!A:B,MATCH(""Data"",'" & Cell & "'!B:B,0),1)"
          End If
       
       Next Cell
    
    End Sub
    Attached Files Attached Files

+ 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. Dynamic References Based on Two Criteria (INDIRECT OR VLOOKUP?)
    By hotelguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-08-2015, 09:52 PM
  2. [SOLVED] Using Indirect() to get dynamic references in an array formula
    By jlb333333 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2015, 10:37 AM
  3. [SOLVED] SUMPRODUCT(SUMIF(INDIRECT with Dynamic Worksheet Range
    By decipher in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2014, 05:40 AM
  4. [VBA] Indirect copy to dynamic worksheet
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2014, 12:15 AM
  5. Replies: 1
    Last Post: 02-18-2012, 10:31 AM
  6. [SOLVED] Dynamic worksheet references
    By David Boothe in forum Excel General
    Replies: 3
    Last Post: 05-28-2006, 07:15 AM
  7. Dynamic formulas including worksheet references
    By lars22222 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 06:05 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