+ Reply to Thread
Results 1 to 2 of 2

Variable for Filename and sheet in INDEX-MATCH formula!

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2016
    Posts
    1

    Variable for Filename and sheet in INDEX-MATCH formula!

    Hi,

    I have created some code in Excel VBA, basically it enters a formula (Index, Match combo) in a cell in the active sheet and then it fills down to the last row.
    The code I want to alter (that works in current state):
    VBA Code:
    Please Login or Register  to view this content.
    However, I want to make it a bit more user friendly and dynamic.
    How can I replace this part: '[sc_request1.xlsx]Page1'! with a variable?
    In other words, workbook and sheet.
    Ordinarily I can make this work and you can find examples everywhere but I guess it's the bangs, exclamation marks and single quotes that makes it complicated in this case.
    Thanks!

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Variable for Filename and sheet in INDEX-MATCH formula!

    For exasmple:
    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. Replies: 1
    Last Post: 03-18-2019, 02:23 PM
  2. INDEX Function on Variable Filename
    By acmichae in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2018, 02:35 PM
  3. [SOLVED] Help with using index match formula with a variable column
    By C J W in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-27-2017, 04:21 PM
  4. Replies: 13
    Last Post: 01-24-2016, 09:27 PM
  5. [SOLVED] Converting Hlookup to Index Match with variable column index number
    By SimonLock in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-09-2015, 09:14 AM
  6. Replies: 3
    Last Post: 07-09-2012, 03:09 PM
  7. Consolidate Index/Match formula into variable range
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-10-2012, 11:16 AM

Tags for this Thread

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