Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Sumproduct - Second Attempt

I thought I had cracked the Sumproduct function but obviously not!

I have three ranges 1 - ("C39:K39,M39:U39") 2 - ("C40:K40,M40:U40") and
3 - ("C33:K33,M33:U33").

I am trying to count the instances where "Arrow" "Miss" and "Left" all occur
in the same column - I thought the following would work but it fails

=SUMPRODUCT(--($C$39:$K$39="Arrow"),--($C$40:$K$40="Miss"),--($C$33:$K$33="Left"))+SUMPRODUCT(--($M$39:$U$39="Arrow"),--($M$40:$U$40="Miss"),--($M$33:$U$33="Left"))

Even tried:-

=SUMPRODUCT(--($C$39:$K$39="Arrow")*($C$40:$K$40="Miss")*($C$33: $K$33="Left"))+SUMPRODUCT(--($M$39:$U$39="Arrow")*($M$40:$U$40="Miss")*($M$33: $U$33="Left"))

Thanks
Sandy


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Sumproduct - Second Attempt

Sandy,

No need for a second attempt, you have an answer in you first and like you
first both these formula are fine.

Mike

"Sandy" wrote:

I thought I had cracked the Sumproduct function but obviously not!

I have three ranges 1 - ("C39:K39,M39:U39") 2 - ("C40:K40,M40:U40") and
3 - ("C33:K33,M33:U33").

I am trying to count the instances where "Arrow" "Miss" and "Left" all occur
in the same column - I thought the following would work but it fails

=SUMPRODUCT(--($C$39:$K$39="Arrow"),--($C$40:$K$40="Miss"),--($C$33:$K$33="Left"))+SUMPRODUCT(--($M$39:$U$39="Arrow"),--($M$40:$U$40="Miss"),--($M$33:$U$33="Left"))

Even tried:-

=SUMPRODUCT(--($C$39:$K$39="Arrow")*($C$40:$K$40="Miss")*($C$33: $K$33="Left"))+SUMPRODUCT(--($M$39:$U$39="Arrow")*($M$40:$U$40="Miss")*($M$33: $U$33="Left"))

Thanks
Sandy



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Sumproduct - Second Attempt

Yes you are quite right Mike - a senior moment or two - the sheet reference
wasn't included - it should read

=SUMPRODUCT(--(Sheet1!$C$39:$K$39="Arrow"),--(Sheet1!$C$40:$K$40="Miss"),--(Sheet1!$C$33:$K$33="Left"))+SUMPRODUCT(--(Sheet1!$M$39:$U$39="Arrow"),--(Sheet1!$M$40:$U$40="Miss"),--(Sheet1!$M$33:$U$33="Left"))

Apologies and Thanks too
Sandy

"Mike H" wrote in message
...
Sandy,

No need for a second attempt, you have an answer in you first and like you
first both these formula are fine.

Mike

"Sandy" wrote:

I thought I had cracked the Sumproduct function but obviously not!

I have three ranges 1 - ("C39:K39,M39:U39") 2 - ("C40:K40,M40:U40") and
3 - ("C33:K33,M33:U33").

I am trying to count the instances where "Arrow" "Miss" and "Left" all
occur
in the same column - I thought the following would work but it fails

=SUMPRODUCT(--($C$39:$K$39="Arrow"),--($C$40:$K$40="Miss"),--($C$33:$K$33="Left"))+SUMPRODUCT(--($M$39:$U$39="Arrow"),--($M$40:$U$40="Miss"),--($M$33:$U$33="Left"))

Even tried:-

=SUMPRODUCT(--($C$39:$K$39="Arrow")*($C$40:$K$40="Miss")*($C$33: $K$33="Left"))+SUMPRODUCT(--($M$39:$U$39="Arrow")*($M$40:$U$40="Miss")*($M$33: $U$33="Left"))

Thanks
Sandy





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Sumproduct - Second Attempt

Sandy,

Senior (I actually prefer blonde) moments are a speciality of mine given my
advanced years but I still can't see anything wrong with your formula. What
error or unexpected result are you gettting.

Mike

"Sandy" wrote:

Yes you are quite right Mike - a senior moment or two - the sheet reference
wasn't included - it should read

=SUMPRODUCT(--(Sheet1!$C$39:$K$39="Arrow"),--(Sheet1!$C$40:$K$40="Miss"),--(Sheet1!$C$33:$K$33="Left"))+SUMPRODUCT(--(Sheet1!$M$39:$U$39="Arrow"),--(Sheet1!$M$40:$U$40="Miss"),--(Sheet1!$M$33:$U$33="Left"))

Apologies and Thanks too
Sandy

"Mike H" wrote in message
...
Sandy,

No need for a second attempt, you have an answer in you first and like you
first both these formula are fine.

Mike

"Sandy" wrote:

I thought I had cracked the Sumproduct function but obviously not!

I have three ranges 1 - ("C39:K39,M39:U39") 2 - ("C40:K40,M40:U40") and
3 - ("C33:K33,M33:U33").

I am trying to count the instances where "Arrow" "Miss" and "Left" all
occur
in the same column - I thought the following would work but it fails

=SUMPRODUCT(--($C$39:$K$39="Arrow"),--($C$40:$K$40="Miss"),--($C$33:$K$33="Left"))+SUMPRODUCT(--($M$39:$U$39="Arrow"),--($M$40:$U$40="Miss"),--($M$33:$U$33="Left"))

Even tried:-

=SUMPRODUCT(--($C$39:$K$39="Arrow")*($C$40:$K$40="Miss")*($C$33: $K$33="Left"))+SUMPRODUCT(--($M$39:$U$39="Arrow")*($M$40:$U$40="Miss")*($M$33: $U$33="Left"))

Thanks
Sandy






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Sumproduct - Second Attempt

Hi Mike

I had forgotten to include the "Sheet1!" before each of the ranges - the
function is in a cell on Sheet2 not Sheet1.
So it was performing as it should have been ( no error message ) but
naturally wasn't finding any "Arrow", "Miss" or "Left" on "Sheet2" (because
they were on "Sheet1") therefore returning "0" when I knew it should have
returned at least "1".

Sandy

"Mike H" wrote in message
...
Sandy,

Senior (I actually prefer blonde) moments are a speciality of mine given
my
advanced years but I still can't see anything wrong with your formula.
What
error or unexpected result are you gettting.

Mike

"Sandy" wrote:

Yes you are quite right Mike - a senior moment or two - the sheet
reference
wasn't included - it should read

=SUMPRODUCT(--(Sheet1!$C$39:$K$39="Arrow"),--(Sheet1!$C$40:$K$40="Miss"),--(Sheet1!$C$33:$K$33="Left"))+SUMPRODUCT(--(Sheet1!$M$39:$U$39="Arrow"),--(Sheet1!$M$40:$U$40="Miss"),--(Sheet1!$M$33:$U$33="Left"))

Apologies and Thanks too
Sandy

"Mike H" wrote in message
...
Sandy,

No need for a second attempt, you have an answer in you first and like
you
first both these formula are fine.

Mike

"Sandy" wrote:

I thought I had cracked the Sumproduct function but obviously not!

I have three ranges 1 - ("C39:K39,M39:U39") 2 - ("C40:K40,M40:U40")
and
3 - ("C33:K33,M33:U33").

I am trying to count the instances where "Arrow" "Miss" and "Left" all
occur
in the same column - I thought the following would work but it fails

=SUMPRODUCT(--($C$39:$K$39="Arrow"),--($C$40:$K$40="Miss"),--($C$33:$K$33="Left"))+SUMPRODUCT(--($M$39:$U$39="Arrow"),--($M$40:$U$40="Miss"),--($M$33:$U$33="Left"))

Even tried:-

=SUMPRODUCT(--($C$39:$K$39="Arrow")*($C$40:$K$40="Miss")*($C$33: $K$33="Left"))+SUMPRODUCT(--($M$39:$U$39="Arrow")*($M$40:$U$40="Miss")*($M$33: $U$33="Left"))

Thanks
Sandy








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
'of' percentage with calculation (attempt 2) Steve Crowther Excel Discussion (Misc queries) 4 May 22nd 06 12:58 PM
Silly Problem with Variable (2nd attempt) pikapika13 Excel Discussion (Misc queries) 2 March 31st 06 05:50 PM
First attempt at VBA coding problem Rick in NS New Users to Excel 9 January 12th 06 05:11 PM
2nd attempt ~ complicated formula Luke Excel Worksheet Functions 3 November 9th 05 03:33 AM
Help - first time to attempt link jwrnana Links and Linking in Excel 9 September 10th 05 01:10 AM


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