I am attempting to develop a actual vs. budget worksheet that will aggregate for the user the number of months activity based upon the month of the fiscal year entered. I believe this can be accomplished using a combination of the SUMPRODUCT and INDEX functions; however, I can't seem to get the context correct. I'm attaching a boiled-down version of the workbook here for your reference. The full worksheet contains over 1,000 account numbers and additional calculation (margins, rate of return, etc.) based upon the YTD actual and budget numbers returned. The worksheets in the file are:
CONTROL - where the user will input the fiscal year month (1 - 12) for the data desired. "1" represents the 1st month of the fiscal year, June, "2" represents the 2nd month of the fiscal year, July, etc.
BUDGET - Budget data
ACTUAL - Actual month's results
YTD VARIANCE - Worksheet that accumulates # of months budget and actual based upon users' input in CONTROL
The formulas I'm trying to fix are in YTD VARIANCE, columns C and D. They currently contain a SUMPRODUCT to look up a specific cell reference. I would like these to pull from the respective ACTUAL or BUDGET sheets based upon the user-entered value in CONTROL, cell B3 (e.g. 1=June, 2=July fiscal YTD, 12=May fiscal YTD, etc.).
Any suggestions how to make this work with a SUMPRODUCT/INDEX combination? Also, any suggestions for this same result using defined names would be appreciated.
Thank you,
John Countzler
Bookmarks