Add cells in a coloumn from a 2 week period

Carol-Ann

New Member
Joined
Jul 28, 2005
Messages
6
Hi! I have a Date and Value Column (A & B) I would like the following result to appear in (C1):

The formula is to take the previous 2 weeks or 14 days from the dates listed in column A. and add the values in column B.

Eg. Feb. 1, 2011 - $35,000
Feb. 14, 2011 - $25,000
Feb. 24, 2011 - $10,000

I would like the formula to only add the sum when the dates are the past 2 weeks (14 days) In this case Feb 14 & 24 would sum $35,000

Thanks.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Assuming your data starts in row 1

=SUMIF($A$1:$A$3,">"&NOW()-14,$B$1:$B$3)

Adjust ranges to suit

HTH
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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