Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
andyp161
 
Posts: n/a
Default Sumproduct Will Not Find Date


Does the SUMPRODUCT function find dates? An example of my formula,as
follows, will not work i.e.returns "0":

=SUMPRODUCT(($A$1:$A$200="26/10/2004)*($B1$B200=$C1))

Please let me know if when using date references I have to do something
extra?

Thanks

Andy


--
andyp161
------------------------------------------------------------------------
andyp161's Profile: http://www.excelforum.com/member.php...o&userid=11654
View this thread: http://www.excelforum.com/showthread...hreadid=506132

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Sumproduct Will Not Find Date

Hi Andy

You are missing a double quote at the end of your date. You also need to
coerce this text to be a date value, by preceding with the double unary
minus so,
=SUMPRODUCT(($A$1:$A$200=--"26/10/2004")*($B1$B200=$C1))
Personally, I always use the DATE() function
=SUMPRODUCT(($A$1:$A$200=DATE(2004,10,26))*($B1$B2 00=$C1))

--
Regards

Roger Govier


"andyp161" wrote
in message ...

Does the SUMPRODUCT function find dates? An example of my formula,as
follows, will not work i.e.returns "0":

=SUMPRODUCT(($A$1:$A$200="26/10/2004)*($B1$B200=$C1))

Please let me know if when using date references I have to do
something
extra?

Thanks

Andy


--
andyp161
------------------------------------------------------------------------
andyp161's Profile:
http://www.excelforum.com/member.php...o&userid=11654
View this thread:
http://www.excelforum.com/showthread...hreadid=506132



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Sumproduct Will Not Find Date

=SUMPRODUCT(($A$1:$A$200=--"2004-10-26")*($B1:$B200=$C1))

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"andyp161" wrote in
message ...

Does the SUMPRODUCT function find dates? An example of my formula,as
follows, will not work i.e.returns "0":

=SUMPRODUCT(($A$1:$A$200="26/10/2004)*($B1$B200=$C1))

Please let me know if when using date references I have to do something
extra?

Thanks

Andy


--
andyp161
------------------------------------------------------------------------
andyp161's Profile:

http://www.excelforum.com/member.php...o&userid=11654
View this thread: http://www.excelforum.com/showthread...hreadid=506132



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
Find last occurance of text in range farutherford Excel Worksheet Functions 5 August 30th 05 02:00 AM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
Function to find row with most current date malik641 Excel Worksheet Functions 3 June 23rd 05 07:05 PM
SUMPRODUCT with date range question Rob V Excel Discussion (Misc queries) 1 January 31st 05 03:55 PM
find date in Col A corresponding to min value in Col B gregl Excel Worksheet Functions 15 November 19th 04 04:01 AM


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

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"