Sum Based on Dates

Deagers

New Member
Joined
Aug 28, 2014
Messages
3
Hi Forum,

I'm New to Excel Programming and have a basic understanding of both macros and formulas.
I'm are after a formula for the following;

[TABLE="width: 500"]
<tbody>[TR]
[TD]Purchase[/TD]
[TD]Date[/TD]
[TD]Qty[/TD]
[TD]Total Cost[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Compressor[/TD]
[TD]28/2/2014[/TD]
[TD]1[/TD]
[TD]600[/TD]
[TD]25/8/2014[/TD]
[/TR]
[TR]
[TD]Battery[/TD]
[TD]7/5/2014[/TD]
[TD]2[/TD]
[TD]80[/TD]
[TD]31/8/2014[/TD]
[/TR]
[TR]
[TD]Spray Gun[/TD]
[TD]26/8/2014[/TD]
[TD]2[/TD]
[TD]400[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Work Boots[/TD]
[TD]27/8/2014[/TD]
[TD]1[/TD]
[TD]150[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I would like a formula to give me a sum of D (Total Cost) Based on a period between 2 Dates (The ones in Column E).

=sumifs(D2:D5,B2:B5,if(AND(

This is what i have come up with so far not sure if I'm on the right track or nor and I'm not sure how to finish it.
Any Help Would be greatly appreciated Thanks Guys.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Glad it helped...
Thanks for the reply..
But please correct the formula i gave you from ">0" to ">="
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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