Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Between 2 Calendar dates

I have 2 worksheets called 1) Data 2) between_2_dates.

The sheet called Data holds all the information.

I have the following formula in cell B2 of sheet between_2_dates:

=SUMPRODUCT(--(Data!$A$1:$A$10000=DATE(2003,01,01)),--(Data!$A$1:$A$10000<=DATE(2008,01,01)))

I am using this calendar control to enter a date in cell D2 and I2 of sheet
between_2_dates:

http://www.rondebruin.nl/calendar.htm

This works fine, but I need to include these 2 dates in the formula above,
so DATE(2003,01,01) will be replaced and use the date in cell D2 and
DATE(2008,01,01) will be replaced and use the date in cell I2.

What would be the complete formula to do this?

Many thanks for any help with this.

--
Richard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Between 2 Calendar dates

If D2 and I2 are both dates, then you can substitute them directly,
i.e.:

=SUMPRODUCT(--(Data!$A$1:$A$10000=D2),--(Data!$A$1:$A$10000<*=I2))

Hope this helps.

Pete

On Jun 21, 12:44 pm, Richard
wrote:
I have 2 worksheets called 1) Data 2) between_2_dates.

The sheet called Data holds all the information.

I have the following formula in cell B2 of sheet between_2_dates:

=SUMPRODUCT(--(Data!$A$1:$A$10000=DATE(2003,01,01)),--(Data!$A$1:$A$10000<*=DATE(2008,01,01)))

I am using this calendar control to enter a date in cell D2 and I2 of sheet
between_2_dates:

http://www.rondebruin.nl/calendar.htm

This works fine, but I need to include these 2 dates in the formula above,
so DATE(2003,01,01) will be replaced and use the date in cell D2 and
DATE(2008,01,01) will be replaced and use the date in cell I2.

What would be the complete formula to do this?

Many thanks for any help with this.

--
Richard



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Between 2 Calendar dates

Do exactly what you say in your message: replace the dates with cells. Your new
formula would be:

=SUMPRODUCT(--(Data!$A$1:$A$10000=d2),--(Data!$A$1:$A$10000<=i2))

--
Regards,
Fred


"Richard" wrote in message
...
I have 2 worksheets called 1) Data 2) between_2_dates.

The sheet called Data holds all the information.

I have the following formula in cell B2 of sheet between_2_dates:

=SUMPRODUCT(--(Data!$A$1:$A$10000=DATE(2003,01,01)),--(Data!$A$1:$A$10000<=DATE(2008,01,01)))

I am using this calendar control to enter a date in cell D2 and I2 of sheet
between_2_dates:

http://www.rondebruin.nl/calendar.htm

This works fine, but I need to include these 2 dates in the formula above,
so DATE(2003,01,01) will be replaced and use the date in cell D2 and
DATE(2008,01,01) will be replaced and use the date in cell I2.

What would be the complete formula to do this?

Many thanks for any help with this.

--
Richard



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Between 2 Calendar dates

=SUMPRODUCT(--(Data!$A$1:$A$10000=D2),--(Data!$A$1:$A$10000<=I2))



Richard wrote:

I have 2 worksheets called 1) Data 2) between_2_dates.

The sheet called Data holds all the information.

I have the following formula in cell B2 of sheet between_2_dates:

=SUMPRODUCT(--(Data!$A$1:$A$10000=DATE(2003,01,01)),--(Data!$A$1:$A$10000<=DATE(2008,01,01)))

I am using this calendar control to enter a date in cell D2 and I2 of sheet
between_2_dates:

http://www.rondebruin.nl/calendar.htm

This works fine, but I need to include these 2 dates in the formula above,
so DATE(2003,01,01) will be replaced and use the date in cell D2 and
DATE(2008,01,01) will be replaced and use the date in cell I2.

What would be the complete formula to do this?

Many thanks for any help with this.

--
Richard


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Between 2 Calendar dates

Thank you everyone, that works fine.

I was trying to this <=DATE(D2) and wondered why it wasn't working.

--
Richard


"Dave Peterson" wrote:

=SUMPRODUCT(--(Data!$A$1:$A$10000=D2),--(Data!$A$1:$A$10000<=I2))



Richard wrote:

I have 2 worksheets called 1) Data 2) between_2_dates.

The sheet called Data holds all the information.

I have the following formula in cell B2 of sheet between_2_dates:

=SUMPRODUCT(--(Data!$A$1:$A$10000=DATE(2003,01,01)),--(Data!$A$1:$A$10000<=DATE(2008,01,01)))

I am using this calendar control to enter a date in cell D2 and I2 of sheet
between_2_dates:

http://www.rondebruin.nl/calendar.htm

This works fine, but I need to include these 2 dates in the formula above,
so DATE(2003,01,01) will be replaced and use the date in cell D2 and
DATE(2008,01,01) will be replaced and use the date in cell I2.

What would be the complete formula to do this?

Many thanks for any help with this.

--
Richard


--

Dave Peterson

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
VLOOKUP calendar dates Stanley Excel Discussion (Misc queries) 5 January 19th 06 05:00 PM
Dates from Julian calendar y_not Excel Discussion (Misc queries) 1 October 24th 05 06:36 PM
Calendar/Dates Help Nat Excel Discussion (Misc queries) 5 August 10th 05 07:35 AM
Dates - Calendar Rena Excel Discussion (Misc queries) 0 April 29th 05 05:16 PM
Linking dates with a calendar... mcboots Excel Worksheet Functions 2 November 17th 04 04:11 AM


All times are GMT +1. The time now is 03:23 PM.

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

About Us

"It's about Microsoft Excel"