***Need help with formula

hercule_p2001

New Member
Joined
Feb 26, 2009
Messages
18
Hello!

I have a sheet on which in the range AL3:AS14 there is data retrieved from Access database. Row AL3 is the header row with e.g. following names:

Month - Cat1Expense - Cat2Expense - Cat3Expense - - - - Cat7Expense

The column Month has the entries for month in the yyyymm format from July to June:
200906
200907
200908
...
201006

In the same sheet from cell A1 I have the expense report made which currently I fill manually from the range mentioned above. The data is transposed with month as the header and category expenses in rows. BUT I can't use the transpose function because there are some fixed expenses that do not change and so are interspersed with the changing expenses like following:
Note: FE is for Fixed Expense. CE is for Category Expense

*** Jun-09 Jul-09 Aug-09 & so on
FE1 500 500 500
FE2 120 120 120
CE1 :get the data from Cat1Expense for the respective month:
CE2 : ---------same for Cat2Expense-----------------------:
Subtotal: SUM of the above(FE1+FE2+CE1+CE2)

CE3
FE3
FE4
Subtotal (CE3+FE3+FE4)

CE4
CE5
CE6
CE7
Subtotal(CE4 to CE7)

TOTAL - sum of all subtotals.

Can we use array formula is some way to make the task easier?


Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Thanks for responding but there is a problem with that. I have to do this at the end of each month. So if I did it for this month and inserted the rows for fixed expenses, how will it then work the next month? What I am trying to achieve is to automate the whole process since the data is already there. I am looking for some nested formulae into the cells that should get the data.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top