Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Concatenating Criteria in DSUM

When setting up the criteria range for a DSum function, I have to use two
columns to get a date range. Does anyone know if there is a trick to
concatenating the two dates into one criteria string as demonstrated below?

Date Date
12/31/2008 <2/1/2009 for all of January but using two columns


What I am looking for is:
Date
12/31/2008 and <2/1/2009 didn't work
12/31/2008<2/1/2009 didn't work

and(12/31/2008,<2/1/2009) didn't work

The month and day are hard coded, but the year changes based on the date in
one cell of the criteria worksheet. This way I can change the year quickly.

--
Michael Conroy
Stamford, CT
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Concatenating Criteria in DSUM

Hi,

You may use this

=AND(MONTH(C8)=1,YEAR(C8)=2009)

Just ensure that the heading of this criteria is not equal to the heading in
the first row of your data list

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Michael Conroy" wrote in message
...
When setting up the criteria range for a DSum function, I have to use two
columns to get a date range. Does anyone know if there is a trick to
concatenating the two dates into one criteria string as demonstrated
below?

Date Date
12/31/2008 <2/1/2009 for all of January but using two columns


What I am looking for is:
Date
12/31/2008 and <2/1/2009 didn't work
12/31/2008<2/1/2009 didn't work

and(12/31/2008,<2/1/2009) didn't work

The month and day are hard coded, but the year changes based on the date
in
one cell of the criteria worksheet. This way I can change the year
quickly.

--
Michael Conroy
Stamford, CT


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Concatenating Criteria in DSUM

Another way

=TEXT(A1,"MMYYYY")="012009"

If this post helps click Yes
---------------
Jacob Skaria


"Michael Conroy" wrote:

When setting up the criteria range for a DSum function, I have to use two
columns to get a date range. Does anyone know if there is a trick to
concatenating the two dates into one criteria string as demonstrated below?

Date Date
12/31/2008 <2/1/2009 for all of January but using two columns


What I am looking for is:
Date
12/31/2008 and <2/1/2009 didn't work
12/31/2008<2/1/2009 didn't work

and(12/31/2008,<2/1/2009) didn't work

The month and day are hard coded, but the year changes based on the date in
one cell of the criteria worksheet. This way I can change the year quickly.

--
Michael Conroy
Stamford, CT

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
DSum - criteria in different row than value to sum Smangler Excel Worksheet Functions 2 July 15th 09 04:21 PM
DSUM criteria Edward Excel Worksheet Functions 3 July 9th 07 04:19 PM
DSum criteria Troubled Excel Worksheet Functions 2 November 8th 06 04:22 AM
HOW TO USE DSUM WITH MORE THAN ONE CRITERIA Michael H.M.Mikhail New Users to Excel 1 May 23rd 06 09:42 AM
Using DSUM with several criteria matthoffman33 Excel Worksheet Functions 2 May 6th 06 05:46 PM


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

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"