Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / January 2008

Tip: Looking for answers? Try searching our database.

Difficulties with date in conditional calculations

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Basha - 15 Jan 2008 11:02 GMT
Hi all

I am currently trying to generate a table to add up all payments due to
suppliers per month, using the function  "DSUM('PAYMENT
DUE'!$B$4:$I$1073,"PAYMENT DUE",A36:C38)", with 'A36:C38' in this example
containing the criteria determining the month in which the payment is due,
e.g. '>=01-Jan' and '<=31-Jan'.

However, the year of the dates in the criteria is automatically populated as
2008. Therefore, payments due in any other year is not added in the
calculation. This is problematic since the seasons determining the payments
usually fall in more than one year.

How can I bypass the year-issue, i.e. so that either the year value is
ignored in the calculations, or that the criteria can be adapted to include
all year values?

Regards
B
Bernie Deitrick - 15 Jan 2008 14:21 GMT
Basha,

The easiest thing to do would be to add a column to your database, with the formula

=MONTH(cell with date)

and then do your DSUM based on that value being =1

HTH,
Bernie
MS Excel MVP

> Hi all
>
[quoted text clipped - 15 lines]
> Regards
> B
Basha - 16 Jan 2008 05:52 GMT
Thanks Bernie, this is working perfectly!  

B

> Basha,
>
[quoted text clipped - 27 lines]
> > Regards
> > B
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.