Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Difficulties with date in conditional calculations

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Difficulties with date in conditional calculations

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


"Basha" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Difficulties with date in conditional calculations

Thanks Bernie, this is working perfectly!

B

"Bernie Deitrick" wrote:

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


"Basha" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Calculations before date entered Ma2Weir Excel Discussion (Misc queries) 8 February 1st 07 03:34 AM
conditional calculations [email protected] Excel Worksheet Functions 1 July 7th 06 07:50 PM
Conditional string calculations Marie1uk Excel Worksheet Functions 4 May 28th 06 12:11 AM
Conditional Calculations??????? maurices5000 Excel Worksheet Functions 3 May 10th 06 05:38 PM
difficulties ernie Excel Discussion (Misc queries) 1 February 13th 06 08:39 PM


All times are GMT +1. The time now is 12:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"