creating current and noncurrent line item summary (add up category values based off current + prior month)

destro__

New Member
Joined
Feb 10, 2015
Messages
1
Goal: To create 2 line items (current expense and non current expense) that auto populate once I create a data extract from a database and update the current date.

current expense: sum all line item values within current month and previous month IF the line items are a certain category.
noncurrent expense: same as above but for values 3 months or older from current month


example:

Here is a smaple data set:
Document TypePosting DateAmount in local currency
AC1/29/2015(159,017.00)
SA1/28/2015(598,716.15)
TM1/29/2015(14.50)
TM1/29/2015(814.00)
TM1/21/2015(1,520.00)
TM1/20/2015(115.05)

<tbody>
</tbody><colgroup><col><col><col></colgroup>

current expense: I want to sum up all the "TM" document types if they are in the current month (january) or previous month (december)

noncurrent expense: I want to sum up all the "TM" document types if they are in prior to december
I would like the formulas that calculate each line item to be based off the current month


I've been trying to use SUMIFS and SUMPRODUCT but can't seem to get it down.

Thank you for any time and help!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,221,526
Messages
6,160,340
Members
451,637
Latest member
hvp2262

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