Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-19-2016, 07:02 AM
Lluewhyn Lluewhyn is offline Does Excel have a way of using variables to easily update reference formulas? Windows 7 32bit Does Excel have a way of using variables to easily update reference formulas? Office 2016
Novice
Does Excel have a way of using variables to easily update reference formulas?
 
Join Date: Apr 2016
Posts: 10
Lluewhyn is on a distinguished road
Default Does Excel have a way of using variables to easily update reference formulas?


I am using several spreadsheets at work. One is a list of activity for each day, and the other is a set of statements for each customer. The latter references the activity spreadsheet, along with one or two other pricing spreadsheets.

When I create a new spreadsheet for each month, I have to update the formulas to now reference the proper source for the formulas. I have to remember every location that is using a formula that needs updated in this manner. I'm wondering if there's a way to do it using some kind of variable. I'm not terribly familiar with Excel's Name system, so maybe that would work?

For example, here is one formula that would need updated:

=VLOOKUP($F30, 'G:\Accounting\_Acct\Facility\Allocations\2016 Allocations\10-2016\[10-2016 Monthly Allocation & Fee Calculation.xlsx]Fee Summary'!$A$70:$H$78, 6, 0)

When I create November's, I will have to do Find and Replace 10-2016 with 11-2016 (twice), and when I create January's in a few months I'll have to replace the 2016 with 2017.

Is there a way to set these formulas so that I can replace the file name I'm referencing with a variable that I could simply make one change to? Something like this:
=VLOOKUP($F30, 'G:\Accounting\_Acct\Facility\Allocations\"YYYY" Allocations\"MM-YYYY"\["MM-YYYY" Monthly Allocation & Fee Calculation.xlsx]Fee Summary'!$A$70:$H$78, 6, 0)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Array to iterate through variables and trap blank variables Marrick13 Word VBA 5 08-04-2015 06:19 AM
Does Excel have a way of using variables to easily update reference formulas? Formulas/Scripts That Cross Reference & Import Data ekeithjohnson Excel Programming 3 08-23-2014 11:26 PM
Does Excel have a way of using variables to easily update reference formulas? Retrieve page numbers in Word doc from set of variables in Excel file smn Word VBA 6 06-29-2014 06:32 PM
Does Excel have a way of using variables to easily update reference formulas? Cross-reference function to update bullet header and number simultaneously dljenks Word 1 01-03-2014 01:38 PM
Does Excel have a way of using variables to easily update reference formulas? Update bookmarks and variables in document webharvest Word VBA 5 06-21-2011 03:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft