Microsoft Junkie
New Member
- Joined
- Jul 7, 2021
- Messages
- 5
- Office Version
- 365
Hello all! I have spent many hours attempting to solve this problem and hope one of the geniuses on this forum could please help! I think I am doing something simple wrong, and it might just take a quick lookover.
I have a monthly task where I need to take my employer's budget from their software and put in into a better formatted and usable excel file. I have gotten pretty close to completely automating the task with some simple formulas, and now I want to finish the job. Essentially, I need an index match that only searches in certain areas, but these areas move as items are added or removed from the budget. I have attached a mini sheet that shows a small sample of what I would receive from the software.
For example, if I wanted to pull the current year numbers for line item 4611 from the Water Fund section to put into my budget sheet, I have been using this formula:
=INDEX(INDIRECT("'Output'!"&ADDRESS(MATCH("GeneralFund",'Output'!$A:$A,0),3,2)&":"&"C13"),MATCH(4611,INDIRECT("'Output'!"&ADDRESS(MATCH("GeneralFund",'Output'!$A:$A,0),1,2)&":"&"A13"),0))
Unfortunately, I have to go through each month and change C13 and A13 depending on how many line items have changed (which can be quite a bit!). I want to change the "C13" and "A13" to change automatically depending how many lines down the next fund ("SewerFund") is. It seems so simple, but I have struggled so hard! Please help!
I have a monthly task where I need to take my employer's budget from their software and put in into a better formatted and usable excel file. I have gotten pretty close to completely automating the task with some simple formulas, and now I want to finish the job. Essentially, I need an index match that only searches in certain areas, but these areas move as items are added or removed from the budget. I have attached a mini sheet that shows a small sample of what I would receive from the software.
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
3 | GeneralFund | Budget | Current Year | Prior Year | ||
4 | 4611 | $40 | $30 | $35 | ||
5 | 4612 | $45 | $37 | $39 | ||
6 | 4613 | $100 | $120 | $110 | ||
7 | ||||||
8 | WaterFund | |||||
9 | 4611 | $25 | $22 | $24 | ||
10 | 4612 | $70 | $65 | $66 | ||
11 | 4613 | $80 | $72 | $71 | ||
12 | ||||||
13 | SewerFund | |||||
14 | 4611 | $10 | $13 | $11 | ||
15 | 4612 | $15 | $14 | $17 | ||
16 | 4613 | $300 | $325 | $275 | ||
17 | ||||||
18 | ||||||
19 | 22 | |||||
Output |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B19 | B19 | =INDEX(INDIRECT("'Output'!"&ADDRESS(MATCH("WaterFund",Output!$A:$A,0),3,2)&":"&"C13"),MATCH(4611,INDIRECT("'Output'!"&ADDRESS(MATCH("WaterFund",Output!$A:$A,0),1,2)&":"&"A13"),0)) |
For example, if I wanted to pull the current year numbers for line item 4611 from the Water Fund section to put into my budget sheet, I have been using this formula:
=INDEX(INDIRECT("'Output'!"&ADDRESS(MATCH("GeneralFund",'Output'!$A:$A,0),3,2)&":"&"C13"),MATCH(4611,INDIRECT("'Output'!"&ADDRESS(MATCH("GeneralFund",'Output'!$A:$A,0),1,2)&":"&"A13"),0))
Unfortunately, I have to go through each month and change C13 and A13 depending on how many line items have changed (which can be quite a bit!). I want to change the "C13" and "A13" to change automatically depending how many lines down the next fund ("SewerFund") is. It seems so simple, but I have struggled so hard! Please help!