Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default Show if between two dates

Hi everyone

I am trying to count that if the name in T21 is anywhere in column D and the
corresponding cell in column A is between the 01/01/2010 and the 31/01/2010

I have written the following but its not working - where am I falling down
please?

=SUMPRODUCT(($D$2:$D$618=T21)*($A$2:$A$618=01/01/2010,<31/01/2010))

Thanks as always

Lise
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Show if between two dates

=SUMPRODUCT(($D$2:$D$618=T21)*($A$2:$A$618=01/01/2010,<31/01/2010))

Use cells to hold the date boundaries.

F1 = lower date boundary
G1 = upper date boundary

=SUMPRODUCT(--($D$2:$D$618=T21),--($A$2:$A$618=F1),--($A$2:$A$618<G1))

--
Biff
Microsoft Excel MVP


"Lise" wrote in message
...
Hi everyone

I am trying to count that if the name in T21 is anywhere in column D and
the
corresponding cell in column A is between the 01/01/2010 and the
31/01/2010

I have written the following but its not working - where am I falling down
please?

=SUMPRODUCT(($D$2:$D$618=T21)*($A$2:$A$618=01/01/2010,<31/01/2010))

Thanks as always

Lise



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Show if between two dates

To Excel, 01/01/2010 in a formula means 1 divided by 1 divided by 2010. If
you want a date, you need to say so, as in:
=SUMPRODUCT(($D$2:$D$618=T21)*($A$2:$A$618=DATE(2 010,1,1))*($A$2:$A$618<DATE(2010,1,31)))

Regards,
Fred

"Lise" wrote in message
...
Hi everyone

I am trying to count that if the name in T21 is anywhere in column D and
the
corresponding cell in column A is between the 01/01/2010 and the
31/01/2010

I have written the following but its not working - where am I falling down
please?

=SUMPRODUCT(($D$2:$D$618=T21)*($A$2:$A$618=01/01/2010,<31/01/2010))

Thanks as always

Lise


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default Show if between two dates

Fabulous - thanks to you both :-)

--
Thanks as always

Lise


"Fred Smith" wrote:

To Excel, 01/01/2010 in a formula means 1 divided by 1 divided by 2010. If
you want a date, you need to say so, as in:
=SUMPRODUCT(($D$2:$D$618=T21)*($A$2:$A$618=DATE(2 010,1,1))*($A$2:$A$618<DATE(2010,1,31)))

Regards,
Fred

"Lise" wrote in message
...
Hi everyone

I am trying to count that if the name in T21 is anywhere in column D and
the
corresponding cell in column A is between the 01/01/2010 and the
31/01/2010

I have written the following but its not working - where am I falling down
please?

=SUMPRODUCT(($D$2:$D$618=T21)*($A$2:$A$618=01/01/2010,<31/01/2010))

Thanks as always

Lise


.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Show if between two dates

You're welcome. Thanks for the feedback.

Fred.

"Lise" wrote in message
...
Fabulous - thanks to you both :-)

--
Thanks as always

Lise


"Fred Smith" wrote:

To Excel, 01/01/2010 in a formula means 1 divided by 1 divided by 2010.
If
you want a date, you need to say so, as in:
=SUMPRODUCT(($D$2:$D$618=T21)*($A$2:$A$618=DATE(2 010,1,1))*($A$2:$A$618<DATE(2010,1,31)))

Regards,
Fred

"Lise" wrote in message
...
Hi everyone

I am trying to count that if the name in T21 is anywhere in column D
and
the
corresponding cell in column A is between the 01/01/2010 and the
31/01/2010

I have written the following but its not working - where am I falling
down
please?

=SUMPRODUCT(($D$2:$D$618=T21)*($A$2:$A$618=01/01/2010,<31/01/2010))

Thanks as always

Lise


.




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
How to show data between two dates? BWAK424 Excel Discussion (Misc queries) 3 February 2nd 10 02:22 PM
Show only future Dates Zebrageek Excel Worksheet Functions 4 July 20th 09 02:20 PM
Dates won't show? Riptide Excel Discussion (Misc queries) 2 August 3rd 07 06:32 PM
HOW DO I SET DATES TO SHOW ON MY SPREADSHEET? Roberto Excel Worksheet Functions 2 June 25th 06 01:01 PM
HOW DO I SET DATES TO SHOW ON MY SPREADSHEET? Roberto Excel Discussion (Misc queries) 1 June 25th 06 10:05 AM


All times are GMT +1. The time now is 05:34 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"