ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sumif comparing dates in criteria (https://www.excelbanter.com/excel-discussion-misc-queries/260548-sumif-comparing-dates-criteria.html)

sdjsage

Sumif comparing dates in criteria
 
I'm trying to use SUMIF
=SUMIF(L6:L8,"=and(B20,<=C20)",K6:K8)
where column L has dates in it, column K has dollar amounts and the criteria
is looking at a fields that have dates.
So, trying to include in the sum the payment amount if the estimated payment
date is greater than last week's date but less then the current week's date.

Working on a cash flow tool that would read from a list of all of our
contracts entered and their estimated payment dates.




Roger Govier[_8_]

Sumif comparing dates in criteria
 
Hi

Try
=SUMPRODUCT(($L$6:$L$8=B20)*($L6:$L8<=C20)*K6:K8)
--
Regards
Roger Govier

sdjsage wrote:
I'm trying to use SUMIF
=SUMIF(L6:L8,"=and(B20,<=C20)",K6:K8)
where column L has dates in it, column K has dollar amounts and the criteria
is looking at a fields that have dates.
So, trying to include in the sum the payment amount if the estimated payment
date is greater than last week's date but less then the current week's date.

Working on a cash flow tool that would read from a list of all of our
contracts entered and their estimated payment dates.





All times are GMT +1. The time now is 02:14 PM.

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