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 Datevalue Problem


Hi there,

I have written the following formula, which works fine:

=SUMPRODUCT((Sheet1!$S$2:$S$27488=DATEVALUE("31/3/2006"))*(Sheet1!$O$2:$O$27488=(Sheet2!$A3)))

However, I actually want to return values for whole months rather than
specific dates ie replace "31/03/2006" with "March".

Hope you can help.

Many thanks


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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Sumproduct Datevalue Problem

=SUMPRODUCT(--(MONTH(Sheet1!$S$2:$S$27488=3)),--(YEAR(Sheet1!$S$2:$S$27488=2
006)),--(Sheet1!$O$2:$O$27488=Sheet2!$A3))


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"andyp161" wrote in
message ...

Hi there,

I have written the following formula, which works fine:


=SUMPRODUCT((Sheet1!$S$2:$S$27488=DATEVALUE("31/3/2006"))*(Sheet1!$O$2:$O$27
488=(Sheet2!$A3)))

However, I actually want to return values for whole months rather than
specific dates ie replace "31/03/2006" with "March".

Hope you can help.

Many thanks


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

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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
andyp161
 
Posts: n/a
Default Sumproduct Datevalue Problem


Thanks Bob.

Unfortunatety, this returns 435,100 which is an impossible result. I
can't seem to work out why it isn't working. Any ideas?

Many thanks


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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Sumproduct Datevalue Problem

Andy,

Brackets in wrong place

=SUMPRODUCT(--(MONTH(Sheet1!$S$2:$S$27488)=3),--(YEAR(Sheet1!$S$2:$S$27488)=
2006),--(Sheet1!$O$2:$O$27488=Sheet2!$A3))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"andyp161" wrote in
message ...

Thanks Bob.

Unfortunatety, this returns 435,100 which is an impossible result. I
can't seem to work out why it isn't working. Any ideas?

Many thanks


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

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



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
Problem using ADDRESS() in SUMPRODUCT() rmellison Excel Discussion (Misc queries) 2 January 9th 06 11:14 AM
Frustrating SUMPRODUCT problem. rmellison Excel Discussion (Misc queries) 1 January 6th 06 01:58 PM
Excel Display Problem Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 0 April 19th 05 05:25 PM
SUMPRODUCT Problem Mestrella31 Excel Discussion (Misc queries) 2 December 21st 04 07:01 PM
SUMPRODUCT problem Jane Excel Worksheet Functions 3 November 8th 04 11:58 PM


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