2 sheet running total calculations.

westgross

New Member
Joined
Jun 11, 2007
Messages
5
I'm using Excel 2003 on Windows XP Sp2. My project has 1 workbook with 2 sheets. The first sheet is a running total of my daily bank activity with the following column headings.

DATE AMOUNT CATEGORY CK# DESCRIPTION

Each row in this sheet has a category name assigned to it. The second sheet, called budget, has the following column headings.

CATEGORY BUDGET AMOUNT ACTUAL AMOUNT DIFFERENCE

Each row in this sheet has a category name corresponding to the bank activity sheet for example.

Wages/Bonuses
Other Income
Mortgage or Rent
Electricity
Groceries
Gas/Oil
Entertainment
Miscellaneous Expense

How do I automatically take the row data "amount" with assigned category name from the bank activity sheet and sum the amount into the budget sheet with the corresponding category name rows under the amount column?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi,

Maybe easiest is to use the SUMIF function - help refers.

Also DSUM might be good.

Suggest you include a check sum somehow. Such as, check that the sum of all of the results equals the sum of all of the source data. It would be easy to have a category in the source data and not in the summary sheet and its total could be omitted.

FYI, other ways include via a pivot table. Pivot tables can be great for consolidating lots of data. Such as have a pivot table from the sheet with the daily activity and then populate where you want the results with GETPIVOTDATA functions. Or using a query table instead of a pivot table. If you get into VBA there are other ways again.

HTH, Fazza
 
Upvote 0
Thanks but still have questions

SUMIF seems to rely on a fixed range. Since my data is appended to the activity worksheet daily and the rows are assigned category names in the order of the transaction date (in other words, one row may be assigned category name "entertainment", the next row "utilities", so on). Hopefully this makes sense. Maybe I'm not getting it but I am trying to understand the usage from Excel help. If you could give me an example of the formulas you suggested it would spell things out better for me. Thank you!
 
Upvote 0
Hi,

I was away a day, hence my delay in replying. I'm surprised noone else has answered in the meantime.

SUMIF can be across the whole column. So in the budget worksheet's "AMOUNT" column you can have a formula such as
Code:
=SUMIF('bank activity'!C:C,A2,'bank activity'!B:B)
Again, there are more sophisticated approaches that offer some advantages so, if you're interested, I suggest you learn a bit more about other approaches.

HTH, Fazza
 
Upvote 0
Thanks! A little trial and error with 3d SUMIF.

Thanks for the help. After a little trial and error I got the result I was looking for with the following function that works:

=SUMIF(Checking_Activity!CATEGORY,"=Wages_Bonuses",Checking_Activity!AMOUNT)
 
Upvote 0
Macro for function data

Now that I have the following function working,

=SUMIF(Checking_Activity!CATEGORY,"=Wages_Bonuses",Checking_Activity!AMOUNT)

, I was wondering if I can create a macro to prompt me for

CATEGORY,"=name"

within the function?
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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