A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

SUMPRODUCT arguments



 
 
Thread Tools Display Modes
  #1  
Old October 13th, 2008, 04:07 AM posted to microsoft.public.excel.worksheet.functions
Chris T-M
external usenet poster
 
Posts: 18
Default SUMPRODUCT arguments

Working with SUMPRODUCT for the first time. Can someone explain the use of
the dashes following the command? I've seen from none to (I think) 4...

I started with: SUMPRODUCT(--(range=x),--(range=y))

I am currently trying to use 3 arguments, but the answer I expected was +#,
but I am getting a -#.

SUMPRODUCT(---([RANGE S]="REPORT"),---([RANGE 1 DUE]=[FIRST OF THE
MONTH],---([RANGE 1 DUE]=[END OF THE MONTH]))

The actual answer is 2, but I get -2.


  #2  
Old October 13th, 2008, 04:12 AM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default SUMPRODUCT arguments

You are getting -2 because you are using three minus signs for each
argument. You need only two. The third one is changing your answer to
negative.

Regards,
Fred.

"Chris T-M" wrote in message
...
Working with SUMPRODUCT for the first time. Can someone explain the use of
the dashes following the command? I've seen from none to (I think) 4...

I started with: SUMPRODUCT(--(range=x),--(range=y))

I am currently trying to use 3 arguments, but the answer I expected was
+#,
but I am getting a -#.

SUMPRODUCT(---([RANGE S]="REPORT"),---([RANGE 1 DUE]=[FIRST OF THE
MONTH],---([RANGE 1 DUE]=[END OF THE MONTH]))

The actual answer is 2, but I get -2.



  #3  
Old October 13th, 2008, 04:42 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default SUMPRODUCT arguments

See this:

http://xldynamic.com/source/xld.SUMPRODUCT.html

--
Biff
Microsoft Excel MVP


"Chris T-M" wrote in message
...
Working with SUMPRODUCT for the first time. Can someone explain the use of
the dashes following the command? I've seen from none to (I think) 4...

I started with: SUMPRODUCT(--(range=x),--(range=y))

I am currently trying to use 3 arguments, but the answer I expected was
+#,
but I am getting a -#.

SUMPRODUCT(---([RANGE S]="REPORT"),---([RANGE 1 DUE]=[FIRST OF THE
MONTH],---([RANGE 1 DUE]=[END OF THE MONTH]))

The actual answer is 2, but I get -2.




  #4  
Old October 13th, 2008, 10:49 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_2_]
external usenet poster
 
Posts: 1,562
Default SUMPRODUCT arguments



"Fred Smith" wrote in message
...
You are getting -2 because you are using three minus signs for each
argument. You need only two. The third one is changing your answer to
negative.


....and because there are an odd number of conditional tests, if there were
an even number, it would have worked, as would one, 5 or any other odd
number of dashes (not that I think it should ever be any other number than
2)


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:53 PM.


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