ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   DSUM (https://www.excelbanter.com/excel-worksheet-functions/30004-dsum.html)

Tnknsnj

DSUM
 
I'm having trouble with DSM where my criteria is bracketing two dates. I've
alraedy found that if I don't copy and paste the same exact label on the
second date column, I get an error. However now I'm having problems with
than and < than. I'm trying to capture invoices by month. DSUM seems to be
ignoring the second date (beginning of the next month) and giving me
everything from the first date forward. Thoughts on what I might be doing
wrong?


Peo Sjoblom

Why are you using DSUM at all, you can probably get this with either a pivot
table or a sumproduct formula

=SUMPRODUCT(--(Date_Range1=--"01/01/05"),--(Date(Range2<=--"01/31/05"),Invoice_Amount_Range)

or less US centric


=SUMPRODUCT(--(Date_Range1=DATE(2005,1,1)),--(Date_Range1<=DATE(2005,1,31)),Invoice_Amount_Rang e)



--
Regards,

Peo Sjoblom

(No private emails please)


"Tnknsnj" wrote in message
...
I'm having trouble with DSM where my criteria is bracketing two dates.
I've
alraedy found that if I don't copy and paste the same exact label on the
second date column, I get an error. However now I'm having problems with
than and < than. I'm trying to capture invoices by month. DSUM seems to be
ignoring the second date (beginning of the next month) and giving me
everything from the first date forward. Thoughts on what I might be doing
wrong?




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

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