#1   Report Post  
HJ
 
Posts: n/a
Default Sum Product

I'm trying to write a sumproduct formula that will look up a specific project
and P&L line item, then count the number of times there is a value in a
certain row. Some cells have no value, some have zeros but I just want to
know the number of times the cell in that row has a positive or negative
value. The columns range from D:BW so the max I could have would be 72. The
formula I have now is:

SUMPRODUCT((Master!$A$2:$A$2000=$B$4)*(Master!$B$2 :$B$2000=$B52)*(COUNTIF(Master!$D$2:$BW$2000,"0") ))

The countif formula is giving me an answer of 20,100 where I'm looking for
the number 40.

Can anyone help guide me in the right direction?

Thanks much.
  #2   Report Post  
RagDyer
 
Posts: n/a
Default Sum Product

Since you said "positive OR negative",
Your "0" should perhaps be "<0",
So try this:

=SUMPRODUCT((Master!$A$2:$A$2000=$B$4)*(Master!$B$ 2:$B$2000=$B52)*(Master!$D
$2:$BW$2000<0))

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"HJ" wrote in message
...
I'm trying to write a sumproduct formula that will look up a specific

project
and P&L line item, then count the number of times there is a value in a
certain row. Some cells have no value, some have zeros but I just want to
know the number of times the cell in that row has a positive or negative
value. The columns range from D:BW so the max I could have would be 72.

The
formula I have now is:


SUMPRODUCT((Master!$A$2:$A$2000=$B$4)*(Master!$B$2 :$B$2000=$B52)*(COUNTIF(Ma
ster!$D$2:$BW$2000,"0")))

The countif formula is giving me an answer of 20,100 where I'm looking for
the number 40.

Can anyone help guide me in the right direction?

Thanks much.


  #3   Report Post  
HJ
 
Posts: n/a
Default Sum Product

I tried the <0 first and it gave me a huge number so I tried 0 to see if I
could get closer. I checked the data and there are no negatives for this
particular row but there are in other projects. In your formula below, how
does Excel know to count?

"RagDyer" wrote:

Since you said "positive OR negative",
Your "0" should perhaps be "<0",
So try this:

=SUMPRODUCT((Master!$A$2:$A$2000=$B$4)*(Master!$B$ 2:$B$2000=$B52)*(Master!$D
$2:$BW$2000<0))

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"HJ" wrote in message
...
I'm trying to write a sumproduct formula that will look up a specific

project
and P&L line item, then count the number of times there is a value in a
certain row. Some cells have no value, some have zeros but I just want to
know the number of times the cell in that row has a positive or negative
value. The columns range from D:BW so the max I could have would be 72.

The
formula I have now is:


SUMPRODUCT((Master!$A$2:$A$2000=$B$4)*(Master!$B$2 :$B$2000=$B52)*(COUNTIF(Ma
ster!$D$2:$BW$2000,"0")))

The countif formula is giving me an answer of 20,100 where I'm looking for
the number 40.

Can anyone help guide me in the right direction?

Thanks much.



  #4   Report Post  
RagDyer
 
Posts: n/a
Default Sum Product

You never stated if you got it to work for you or not?

Check out this link for explanations:

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

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"HJ" wrote in message
...
I tried the <0 first and it gave me a huge number so I tried 0 to see if

I
could get closer. I checked the data and there are no negatives for this
particular row but there are in other projects. In your formula below,

how
does Excel know to count?

"RagDyer" wrote:

Since you said "positive OR negative",
Your "0" should perhaps be "<0",
So try this:


=SUMPRODUCT((Master!$A$2:$A$2000=$B$4)*(Master!$B$ 2:$B$2000=$B52)*(Master!$D
$2:$BW$2000<0))

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"HJ" wrote in message
...
I'm trying to write a sumproduct formula that will look up a specific

project
and P&L line item, then count the number of times there is a value in

a
certain row. Some cells have no value, some have zeros but I just

want to
know the number of times the cell in that row has a positive or

negative
value. The columns range from D:BW so the max I could have would be

72.
The
formula I have now is:



SUMPRODUCT((Master!$A$2:$A$2000=$B$4)*(Master!$B$2 :$B$2000=$B52)*(COUNTIF(Ma
ster!$D$2:$BW$2000,"0")))

The countif formula is giving me an answer of 20,100 where I'm looking

for
the number 40.

Can anyone help guide me in the right direction?

Thanks much.




  #5   Report Post  
Alan
 
Posts: n/a
Default Frank Kabel

Hi All,
I just read the link posted by RagDyer below, it refers to the late Frank
Kabel, is Frank no longer with us?
It would appear not, if this is so, respect and sympathy to you and yours
Frank,
Regards,
Alan.
"RagDyer" wrote in message
...
You never stated if you got it to work for you or not?

Check out this link for explanations:

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

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"HJ" wrote in message
...
I tried the <0 first and it gave me a huge number so I tried 0 to see
if

I
could get closer. I checked the data and there are no negatives for this
particular row but there are in other projects. In your formula below,

how
does Excel know to count?

"RagDyer" wrote:

Since you said "positive OR negative",
Your "0" should perhaps be "<0",
So try this:


=SUMPRODUCT((Master!$A$2:$A$2000=$B$4)*(Master!$B$ 2:$B$2000=$B52)*(Master!$D
$2:$BW$2000<0))

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"HJ" wrote in message
...
I'm trying to write a sumproduct formula that will look up a specific
project
and P&L line item, then count the number of times there is a value in

a
certain row. Some cells have no value, some have zeros but I just

want to
know the number of times the cell in that row has a positive or

negative
value. The columns range from D:BW so the max I could have would be

72.
The
formula I have now is:



SUMPRODUCT((Master!$A$2:$A$2000=$B$4)*(Master!$B$2 :$B$2000=$B52)*(COUNTIF(Ma
ster!$D$2:$BW$2000,"0")))

The countif formula is giving me an answer of 20,100 where I'm
looking

for
the number 40.

Can anyone help guide me in the right direction?

Thanks much.





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
Counting Rows/Columns for Copying Formulas SamDev Excel Discussion (Misc queries) 0 June 24th 05 04:13 AM
Percentages Darryl Charts and Charting in Excel 2 May 21st 05 04:31 PM
How to set a formula to count the product appear how manytime AMY Excel Worksheet Functions 3 March 21st 05 09:49 AM
Which Function(s) do I use? LB Excel Worksheet Functions 3 January 6th 05 02:53 AM
Which function(s)? LB Excel Worksheet Functions 3 January 5th 05 06:19 PM


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