Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 239
Default SUMPRODUCT - small correction required

I am facing small problem in the following formula.
=SUMPRODUCT(-(FE!$A$2:$A$65000=A7),-(FE!$B$2:$B$65000=B7),-(FE!$C$2:$C$65000="BSE"),FE!$E$2:$E$65000)

The problem is I am always getting a -ve value whereas the actual value
is +ve.
If I try to change any of the "-" (minus) sign in above formula, it
returns zero.

Please help.

Regards,
Madiya

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT - small correction required

You need a double unary

=SUMPRODUCT(--(FE!$A$2:$A$65000=A7),--(FE!$B$2:$B$65000=B7),
--(FE!$C$2:$C$65000="BSE"),FE!$E$2:$E$65000)


See http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed
explanation.


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Madiya" wrote in message
oups.com...
I am facing small problem in the following formula.

=SUMPRODUCT(-(FE!$A$2:$A$65000=A7),-(FE!$B$2:$B$65000=B7),-(FE!$C$2:$C$65000
="BSE"),FE!$E$2:$E$65000)

The problem is I am always getting a -ve value whereas the actual value
is +ve.
If I try to change any of the "-" (minus) sign in above formula, it
returns zero.

Please help.

Regards,
Madiya



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 239
Default SUMPRODUCT - small correction required

Thanks for your reply. Its great.
Regards,
Madiya

Bob Phillips wrote:

You need a double unary

=SUMPRODUCT(--(FE!$A$2:$A$65000=A7),--(FE!$B$2:$B$65000=B7),
--(FE!$C$2:$C$65000="BSE"),FE!$E$2:$E$65000)


See http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed
explanation.


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Madiya" wrote in message
oups.com...
I am facing small problem in the following formula.

=SUMPRODUCT(-(FE!$A$2:$A$65000=A7),-(FE!$B$2:$B$65000=B7),-(FE!$C$2:$C$65000
="BSE"),FE!$E$2:$E$65000)

The problem is I am always getting a -ve value whereas the actual value
is +ve.
If I try to change any of the "-" (minus) sign in above formula, it
returns zero.

Please help.

Regards,
Madiya


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
ISERROR,SMALL,INDEX, MATCH, SMALL?? M.A.Tyler Excel Discussion (Misc queries) 1 May 2nd 07 04:08 AM
Small runtime error - advice required Dean[_9_] Excel Programming 1 March 27th 06 04:48 AM
Excel VBA expert required! Small to medium job. Sonny[_3_] Excel Programming 0 August 22nd 05 11:51 PM
Sumproduct Help Required Timmy Mac1 Excel Discussion (Misc queries) 3 February 16th 05 05:58 PM
dYNAMIC Array declaration, a small correction in my last thread! aiyer[_45_] Excel Programming 1 August 18th 04 01:13 AM


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