Brojangels
New Member
- Joined
- Nov 8, 2016
- Messages
- 11
I am trying to automate a process so that I can import a budget from QuickBooks and do less manual work in the future. The workbook would have 2 tabs, a "permanent" tab that is formatted the way I like, and most of the cells would be INDEX+MATCH lookups to the other tab; and the "import" tab (called QB) that would change on a monthly or some periodic basis.
I thought I had it figured out, because I got the January "budget" and "actual" columns to work, but when I copied it to February, the actual matched on both tabs but the "budget" numbers were referencing January on the QB tab.
Here's a general idea of the layout:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: right"]January[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]February[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Actual[/TD]
[TD]Budget[/TD]
[TD][/TD]
[TD]Actual[/TD]
[TD]Budget[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Currently my formula for "February Budget" is as follows:
{=INDEX(QB!$A$2:$CE$129,MATCH('Budget to Actual'!$C25,QB!$F$2:$F$129,0),MATCH(1,(QB!$2:$2='Budget to Actual'!L$2)*(QB!$3:$3='Budget to Actual'!L$3),0))}
F is the column on the QB tab with the account numbers,
J:N is the column range for "February" in row 2 (formulas are just using L)
L is the column on the "Budget to Actual" tab for "Budget" underneath the merged cell "February"
When I copy this formula to the "Budget" and "Actual" columns for additional months, again, the "Actual" matches QB correctly, but the "Budget" shows January's number in every month.
Any ideas???
I thought I had it figured out, because I got the January "budget" and "actual" columns to work, but when I copied it to February, the actual matched on both tabs but the "budget" numbers were referencing January on the QB tab.
Here's a general idea of the layout:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: right"]January[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]February[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Actual[/TD]
[TD]Budget[/TD]
[TD][/TD]
[TD]Actual[/TD]
[TD]Budget[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Currently my formula for "February Budget" is as follows:
{=INDEX(QB!$A$2:$CE$129,MATCH('Budget to Actual'!$C25,QB!$F$2:$F$129,0),MATCH(1,(QB!$2:$2='Budget to Actual'!L$2)*(QB!$3:$3='Budget to Actual'!L$3),0))}
F is the column on the QB tab with the account numbers,
J:N is the column range for "February" in row 2 (formulas are just using L)
L is the column on the "Budget to Actual" tab for "Budget" underneath the merged cell "February"
When I copy this formula to the "Budget" and "Actual" columns for additional months, again, the "Actual" matches QB correctly, but the "Budget" shows January's number in every month.
Any ideas???