#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default sumproduct?

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default sumproduct?

50% = 0.5 and 100% = 1.0. when you see 55% in excel it is really sotred as
..55.

"Rene" wrote:

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default sumproduct?

50 and 100 are numbers, not %s.

I'm using the formulas
SUMPRODUCT(--(B2:B1050),--(B2:B10<=100)/COUNT(B2:B10)) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100)/COUNT(C2:C10))
to look in seperate columns.

I would like a formula to reduce the numer of columns. Critera being if
m2:m10 is "b" calculate for b2:l2 (formula is in cell n2) and if m2:m10 is
's' calculate for b2:l2 (formula is in cell o2)

Thanks again




"Joel" wrote:

50% = 0.5 and 100% = 1.0. when you see 55% in excel it is really sotred as
.55.

"Rene" wrote:

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default sumproduct?

Try this instead

SUMPRODUCT(--(B2:B1050),--(B2:B10<=100))/COUNT(B2:B10) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100))/COUNT(C2:C10)






"Rene" wrote:

50 and 100 are numbers, not %s.

I'm using the formulas
SUMPRODUCT(--(B2:B1050),--(B2:B10<=100)/COUNT(B2:B10)) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100)/COUNT(C2:C10))
to look in seperate columns.

I would like a formula to reduce the numer of columns. Critera being if
m2:m10 is "b" calculate for b2:l2 (formula is in cell n2) and if m2:m10 is
's' calculate for b2:l2 (formula is in cell o2)

Thanks again




"Joel" wrote:

50% = 0.5 and 100% = 1.0. when you see 55% in excel it is really sotred as
.55.

"Rene" wrote:

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default sumproduct?

I'm confused; not hard. Isn't that the same as I was doing with the two
formulas? I'm trying to elininate column c by entering all the data in
b2:b10 and then using the criteria in m2:m10. If "b" compute the formula in
N2, if criteria is "s" compute the formula in O2.

"Joel" wrote:

Try this instead

SUMPRODUCT(--(B2:B1050),--(B2:B10<=100))/COUNT(B2:B10) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100))/COUNT(C2:C10)






"Rene" wrote:

50 and 100 are numbers, not %s.

I'm using the formulas
SUMPRODUCT(--(B2:B1050),--(B2:B10<=100)/COUNT(B2:B10)) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100)/COUNT(C2:C10))
to look in seperate columns.

I would like a formula to reduce the numer of columns. Critera being if
m2:m10 is "b" calculate for b2:l2 (formula is in cell n2) and if m2:m10 is
's' calculate for b2:l2 (formula is in cell o2)

Thanks again




"Joel" wrote:

50% = 0.5 and 100% = 1.0. when you see 55% in excel it is really sotred as
.55.

"Rene" wrote:

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default sumproduct?

It turns out just adding another set of parethesis to your formula solves the
problem

=SUMPRODUCT(--(B2:B1050),(--(B2:B10<=100)/COUNT(B2:B10)))

You formula was giving a divide by 0 error. Excel says that empty cells in
arrays are treated as zeroes. I think leaving the parenthesis out was
dimensioning an internal array incorrectly and producing zeroes in the
denominator.

"Rene" wrote:

I'm confused; not hard. Isn't that the same as I was doing with the two
formulas? I'm trying to elininate column c by entering all the data in
b2:b10 and then using the criteria in m2:m10. If "b" compute the formula in
N2, if criteria is "s" compute the formula in O2.

"Joel" wrote:

Try this instead

SUMPRODUCT(--(B2:B1050),--(B2:B10<=100))/COUNT(B2:B10) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100))/COUNT(C2:C10)






"Rene" wrote:

50 and 100 are numbers, not %s.

I'm using the formulas
SUMPRODUCT(--(B2:B1050),--(B2:B10<=100)/COUNT(B2:B10)) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100)/COUNT(C2:C10))
to look in seperate columns.

I would like a formula to reduce the numer of columns. Critera being if
m2:m10 is "b" calculate for b2:l2 (formula is in cell n2) and if m2:m10 is
's' calculate for b2:l2 (formula is in cell o2)

Thanks again




"Joel" wrote:

50% = 0.5 and 100% = 1.0. when you see 55% in excel it is really sotred as
.55.

"Rene" wrote:

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default sumproduct?

Thanks, can I use lookup in (m2:m10) to determine if the formula will be
calculated?

"Joel" wrote:

It turns out just adding another set of parethesis to your formula solves the
problem

=SUMPRODUCT(--(B2:B1050),(--(B2:B10<=100)/COUNT(B2:B10)))

You formula was giving a divide by 0 error. Excel says that empty cells in
arrays are treated as zeroes. I think leaving the parenthesis out was
dimensioning an internal array incorrectly and producing zeroes in the
denominator.

"Rene" wrote:

I'm confused; not hard. Isn't that the same as I was doing with the two
formulas? I'm trying to elininate column c by entering all the data in
b2:b10 and then using the criteria in m2:m10. If "b" compute the formula in
N2, if criteria is "s" compute the formula in O2.

"Joel" wrote:

Try this instead

SUMPRODUCT(--(B2:B1050),--(B2:B10<=100))/COUNT(B2:B10) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100))/COUNT(C2:C10)






"Rene" wrote:

50 and 100 are numbers, not %s.

I'm using the formulas
SUMPRODUCT(--(B2:B1050),--(B2:B10<=100)/COUNT(B2:B10)) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100)/COUNT(C2:C10))
to look in seperate columns.

I would like a formula to reduce the numer of columns. Critera being if
m2:m10 is "b" calculate for b2:l2 (formula is in cell n2) and if m2:m10 is
's' calculate for b2:l2 (formula is in cell o2)

Thanks again




"Joel" wrote:

50% = 0.5 and 100% = 1.0. when you see 55% in excel it is really sotred as
.55.

"Rene" wrote:

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default sumproduct?

I don't completely understand your questions. Don't want to give you an
answer that doesn't apply.

"Rene" wrote:

Thanks, can I use lookup in (m2:m10) to determine if the formula will be
calculated?

"Joel" wrote:

It turns out just adding another set of parethesis to your formula solves the
problem

=SUMPRODUCT(--(B2:B1050),(--(B2:B10<=100)/COUNT(B2:B10)))

You formula was giving a divide by 0 error. Excel says that empty cells in
arrays are treated as zeroes. I think leaving the parenthesis out was
dimensioning an internal array incorrectly and producing zeroes in the
denominator.

"Rene" wrote:

I'm confused; not hard. Isn't that the same as I was doing with the two
formulas? I'm trying to elininate column c by entering all the data in
b2:b10 and then using the criteria in m2:m10. If "b" compute the formula in
N2, if criteria is "s" compute the formula in O2.

"Joel" wrote:

Try this instead

SUMPRODUCT(--(B2:B1050),--(B2:B10<=100))/COUNT(B2:B10) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100))/COUNT(C2:C10)






"Rene" wrote:

50 and 100 are numbers, not %s.

I'm using the formulas
SUMPRODUCT(--(B2:B1050),--(B2:B10<=100)/COUNT(B2:B10)) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100)/COUNT(C2:C10))
to look in seperate columns.

I would like a formula to reduce the numer of columns. Critera being if
m2:m10 is "b" calculate for b2:l2 (formula is in cell n2) and if m2:m10 is
's' calculate for b2:l2 (formula is in cell o2)

Thanks again




"Joel" wrote:

50% = 0.5 and 100% = 1.0. when you see 55% in excel it is really sotred as
.55.

"Rene" wrote:

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default sumproduct?

I can confuse myself with excel...

Currently I have

a2 b2 c2 d2
105
85
SUMPRODUCT(--(B2:B10=50),--(B2:b10<=100)/COUNT(B2:b10)) returns 50%

a2 b2 c2 d2
145
75

SUMPRODUCT(--(C2:C10=50),--(C2:C10<=100)/COUNT(C2:C10)) returns 50%

Would like :)
a2 b2 c2 d2 m2 n2 o2
105 b 'b' formula returns 50%
145 s 's' formula returns 50%
75 s
85 b

Can I do it?


"Joel" wrote:

I don't completely understand your questions. Don't want to give you an
answer that doesn't apply.

"Rene" wrote:

Thanks, can I use lookup in (m2:m10) to determine if the formula will be
calculated?

"Joel" wrote:

It turns out just adding another set of parethesis to your formula solves the
problem

=SUMPRODUCT(--(B2:B1050),(--(B2:B10<=100)/COUNT(B2:B10)))

You formula was giving a divide by 0 error. Excel says that empty cells in
arrays are treated as zeroes. I think leaving the parenthesis out was
dimensioning an internal array incorrectly and producing zeroes in the
denominator.

"Rene" wrote:

I'm confused; not hard. Isn't that the same as I was doing with the two
formulas? I'm trying to elininate column c by entering all the data in
b2:b10 and then using the criteria in m2:m10. If "b" compute the formula in
N2, if criteria is "s" compute the formula in O2.

"Joel" wrote:

Try this instead

SUMPRODUCT(--(B2:B1050),--(B2:B10<=100))/COUNT(B2:B10) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100))/COUNT(C2:C10)






"Rene" wrote:

50 and 100 are numbers, not %s.

I'm using the formulas
SUMPRODUCT(--(B2:B1050),--(B2:B10<=100)/COUNT(B2:B10)) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100)/COUNT(C2:C10))
to look in seperate columns.

I would like a formula to reduce the numer of columns. Critera being if
m2:m10 is "b" calculate for b2:l2 (formula is in cell n2) and if m2:m10 is
's' calculate for b2:l2 (formula is in cell o2)

Thanks again




"Joel" wrote:

50% = 0.5 and 100% = 1.0. when you see 55% in excel it is really sotred as
.55.

"Rene" wrote:

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 342
Default sumproduct?

Do you go by the alias "Novice" or is this a class assignment?




  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default sumproduct?

yes

"TomPl" wrote:

Do you go by the alias "Novice" or is this a class assignment?


  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default sumproduct?

Put the sumproduct into a new cell like A1. Then multiple the m column
formula by a1.

"Rene" wrote:

I can confuse myself with excel...

Currently I have

a2 b2 c2 d2
105
85
SUMPRODUCT(--(B2:B10=50),--(B2:b10<=100)/COUNT(B2:b10)) returns 50%

a2 b2 c2 d2
145
75

SUMPRODUCT(--(C2:C10=50),--(C2:C10<=100)/COUNT(C2:C10)) returns 50%

Would like :)
a2 b2 c2 d2 m2 n2 o2
105 b 'b' formula returns 50%
145 s 's' formula returns 50%
75 s
85 b

Can I do it?


"Joel" wrote:

I don't completely understand your questions. Don't want to give you an
answer that doesn't apply.

"Rene" wrote:

Thanks, can I use lookup in (m2:m10) to determine if the formula will be
calculated?

"Joel" wrote:

It turns out just adding another set of parethesis to your formula solves the
problem

=SUMPRODUCT(--(B2:B1050),(--(B2:B10<=100)/COUNT(B2:B10)))

You formula was giving a divide by 0 error. Excel says that empty cells in
arrays are treated as zeroes. I think leaving the parenthesis out was
dimensioning an internal array incorrectly and producing zeroes in the
denominator.

"Rene" wrote:

I'm confused; not hard. Isn't that the same as I was doing with the two
formulas? I'm trying to elininate column c by entering all the data in
b2:b10 and then using the criteria in m2:m10. If "b" compute the formula in
N2, if criteria is "s" compute the formula in O2.

"Joel" wrote:

Try this instead

SUMPRODUCT(--(B2:B1050),--(B2:B10<=100))/COUNT(B2:B10) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100))/COUNT(C2:C10)






"Rene" wrote:

50 and 100 are numbers, not %s.

I'm using the formulas
SUMPRODUCT(--(B2:B1050),--(B2:B10<=100)/COUNT(B2:B10)) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100)/COUNT(C2:C10))
to look in seperate columns.

I would like a formula to reduce the numer of columns. Critera being if
m2:m10 is "b" calculate for b2:l2 (formula is in cell n2) and if m2:m10 is
's' calculate for b2:l2 (formula is in cell o2)

Thanks again




"Joel" wrote:

50% = 0.5 and 100% = 1.0. when you see 55% in excel it is really sotred as
.55.

"Rene" wrote:

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.

  #13   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default sumproduct?

I'm assuming that I can't do it. Thanks again for your help.

Novice/Rene

"TomPl" wrote:

Do you go by the alias "Novice" or is this a class assignment?


  #14   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default sumproduct?

This worked
=SUMPRODUCT((M2:M10)="b")--SUMPRODUCT(--(F2:F100),--(F2:F10<=105))/COUNT(F2:F10)


m column does not contain a formula just the criteria 'b' or 's'
"Joel" wrote:

Put the sumproduct into a new cell like A1. Then multiple the m column
formula by a1.

"Rene" wrote:

I can confuse myself with excel...

Currently I have

a2 b2 c2 d2
105
85
SUMPRODUCT(--(B2:B10=50),--(B2:b10<=100)/COUNT(B2:b10)) returns 50%

a2 b2 c2 d2
145
75

SUMPRODUCT(--(C2:C10=50),--(C2:C10<=100)/COUNT(C2:C10)) returns 50%

Would like :)
a2 b2 c2 d2 m2 n2 o2
105 b 'b' formula returns 50%
145 s 's' formula returns 50%
75 s
85 b

Can I do it?


"Joel" wrote:

I don't completely understand your questions. Don't want to give you an
answer that doesn't apply.

"Rene" wrote:

Thanks, can I use lookup in (m2:m10) to determine if the formula will be
calculated?

"Joel" wrote:

It turns out just adding another set of parethesis to your formula solves the
problem

=SUMPRODUCT(--(B2:B1050),(--(B2:B10<=100)/COUNT(B2:B10)))

You formula was giving a divide by 0 error. Excel says that empty cells in
arrays are treated as zeroes. I think leaving the parenthesis out was
dimensioning an internal array incorrectly and producing zeroes in the
denominator.

"Rene" wrote:

I'm confused; not hard. Isn't that the same as I was doing with the two
formulas? I'm trying to elininate column c by entering all the data in
b2:b10 and then using the criteria in m2:m10. If "b" compute the formula in
N2, if criteria is "s" compute the formula in O2.

"Joel" wrote:

Try this instead

SUMPRODUCT(--(B2:B1050),--(B2:B10<=100))/COUNT(B2:B10) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100))/COUNT(C2:C10)






"Rene" wrote:

50 and 100 are numbers, not %s.

I'm using the formulas
SUMPRODUCT(--(B2:B1050),--(B2:B10<=100)/COUNT(B2:B10)) and
SUMPRODUCT(--(C2:C1050),--(C2:C10<=100)/COUNT(C2:C10))
to look in seperate columns.

I would like a formula to reduce the numer of columns. Critera being if
m2:m10 is "b" calculate for b2:l2 (formula is in cell n2) and if m2:m10 is
's' calculate for b2:l2 (formula is in cell o2)

Thanks again




"Joel" wrote:

50% = 0.5 and 100% = 1.0. when you see 55% in excel it is really sotred as
.55.

"Rene" wrote:

I want to calculate the percentage for when "b" apears in M2:M10 and the
number is between 50 and 100
=SUMPRODUCT(--(B2:L1050),--(B2:L10<=100)/COUNT(B2:L10))

a1 b2 c2 m2
111 b
99 s
200 s
110 b
55 b
99 s
225 b
b % = 25% (50 and <=100 b2:l10)

Thank you in advance.

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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
Sumproduct Excel 2007 - SPB Excel Discussion (Misc queries) 10 June 16th 08 05:08 AM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
sumproduct Matt Excel Worksheet Functions 0 December 15th 05 12:24 AM
Can I use SUMPRODUCT for this? cottage6 Excel Worksheet Functions 5 November 15th 05 10:09 PM


All times are GMT +1. The time now is 09:12 AM.

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"