ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I sum cashflows in date range. (https://www.excelbanter.com/excel-worksheet-functions/184736-how-do-i-sum-cashflows-date-range.html)

Gerry Pat

How do I sum cashflows in date range.
 
I am trying to add up cashflows that fall within a date range from a string
of dates and corresponding cash flows.

Ashish Mathur[_2_]

How do I sum cashflows in date range.
 
Hi,

Assuming your date range is like this (Range A1:B6)

Date Cash flows
12-Jan-08 100
15-Jan-08 421
28-Jan-08 742
10-Feb-08 1063
05-Jan-08 1384

In range A8:A9, enter the range (such as)

01-Jan-08
20-Jan-08

In cell B8, enter the following formula
=SUMPRODUCT((A2:A6=A8)*(A2:A6<=A9),B2:B6)

--
Regards,

Ashish Mathur
www.ashishmathur.com
http://www.linkedin.com/in/excelenthusiasts

"Gerry Pat" <Gerry wrote in message
...
I am trying to add up cashflows that fall within a date range from a
string
of dates and corresponding cash flows.



ryguy7272

How do I sum cashflows in date range.
 
I piggy backed on AM's idea:
http://www.freefilehosting.net/download/3g23m

Regards,
Ryan--


--
RyGuy


"Ashish Mathur" wrote:

Hi,

Assuming your date range is like this (Range A1:B6)

Date Cash flows
12-Jan-08 100
15-Jan-08 421
28-Jan-08 742
10-Feb-08 1063
05-Jan-08 1384

In range A8:A9, enter the range (such as)

01-Jan-08
20-Jan-08

In cell B8, enter the following formula
=SUMPRODUCT((A2:A6=A8)*(A2:A6<=A9),B2:B6)

--
Regards,

Ashish Mathur
www.ashishmathur.com
http://www.linkedin.com/in/excelenthusiasts

"Gerry Pat" <Gerry wrote in message
...
I am trying to add up cashflows that fall within a date range from a
string
of dates and corresponding cash flows.




All times are GMT +1. The time now is 01:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com