+ Reply to Thread
Results 1 to 2 of 2

How to change Formula path referencing to the text inside a cell?

  1. #1
    Registered User
    Join Date
    04-29-2014
    Location
    California, USA
    MS-Off Ver
    Excel 2013
    Posts
    9

    How to change Formula path referencing to the text inside a cell?

    Hi, If the current Index/Match formula states:

    "=INDEX('Y:\Brian\Payroll\[Payroll Commission P12 FirstSemi.xlsm]Payroll Summary'!$B:$B,MATCH(A2,A:A,0))"

    How can I reference the "P12" to a cell let's say B2, which contains text "01"

    The result will be
    "=INDEX('Y:\Accounting Library\Brian\Payroll Commission\[Payroll Commission P01 FirstSemi.xlsm]Payroll Summary'!$B:$B,MATCH(A2,A:A,0))"

    I tried to use INDIRECT formula which works but it won't work for a closed workbook that it's referencing to.

    Please help, Thanks!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to change Formula path referencing to the text inside a cell?

    This subject came up in 2015 See here....
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Use cell value to change value inside of formula
    By chris.serra in forum Excel General
    Replies: 5
    Last Post: 01-06-2017, 11:50 AM
  2. change path for save location based upon text in a cell
    By wardy212 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2016, 08:34 AM
  3. [SOLVED] Change one number in a cell inside a formula to a variable that is getting higher (+1)
    By chablo309 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2015, 07:28 AM
  4. Replies: 10
    Last Post: 04-27-2014, 08:16 AM
  5. Replies: 1
    Last Post: 05-10-2012, 11:51 PM
  6. Change Cell Ref inside a formula
    By dht in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2006, 06:20 PM
  7. Replies: 1
    Last Post: 05-31-2005, 10:18 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