Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Sumproduct with Matrices

I have the following matrix: The numbers in the column to the far left are
the range for the first growth and the numbers on the last row are the ranges
for the second growth. The percentages in the middle represent the discount
rate that the customer gets for the combination of growths. I am using the
following formula:

=SUMPRODUCT((Matrix!$B$2:$B$7=Summary!H12)*(Matrix !$C$8:$H$8=Summary!J12)*(Matrix!$C$2:$H$7))

This formula works great until one of the growth rates =0. It doesn't seem
to be able to pick up the percentage payout. For example, of Growth rate #1
= 0% and growth rate #2 = 10%, the customer should get 1.5% discount. Can
anyone help me pleaes?

Growth #1
9999.90% 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% 5% 10% 15% 20% 25% 10000%
Growth #2

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Sumproduct with Matrices

If your data starts in row 2, then B2:B7 excludes the 0%. Equally if Growth 2
can be 0% this not include in C8H8.

I think you need another column to cater for 0%

=SUMPRODUCT((Matrix!$B$2:$B$8=Summary!H12)*(Matrix !$C$9:$I$9=Summary!J12)*(Matrix!$C$2:$I$8))

9999.90% ? 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% ? 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% ? 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% ? 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% ? 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% ? 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% ? ? ? ? ? ? ?
0.00% 5% 10% 15% 20% 25% 10000%

HTH

"Stacey" wrote:

I have the following matrix: The numbers in the column to the far left are
the range for the first growth and the numbers on the last row are the ranges
for the second growth. The percentages in the middle represent the discount
rate that the customer gets for the combination of growths. I am using the
following formula:

=SUMPRODUCT((Matrix!$B$2:$B$7=Summary!H12)*(Matrix !$C$8:$H$8=Summary!J12)*(Matrix!$C$2:$H$7))

This formula works great until one of the growth rates =0. It doesn't seem
to be able to pick up the percentage payout. For example, of Growth rate #1
= 0% and growth rate #2 = 10%, the customer should get 1.5% discount. Can
anyone help me pleaes?

Growth #1
9999.90% 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% 5% 10% 15% 20% 25% 10000%
Growth #2

  #3   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Sumproduct with Matrices

are you sure you are getting the right values for the other areas
what happens when you enter 4% and 12 %
you don't have a line for 0 % in your matrix
if the column b and row 8 is supposed to represent "up to and including"
I would recommend inverting the table such that the value matrix goes in c3
as 1% to H8 as 5.5 %
set C2:H2 as 0,5,10,15,20,25 %
Set B3:B8 as 0,5,10,15,20,25 %

now =vlookup(Summary!H12,B3:H8,match(Summary!U12,B2:H2 ,0),0)



"Stacey" wrote:

I have the following matrix: The numbers in the column to the far left are
the range for the first growth and the numbers on the last row are the ranges
for the second growth. The percentages in the middle represent the discount
rate that the customer gets for the combination of growths. I am using the
following formula:

=SUMPRODUCT((Matrix!$B$2:$B$7=Summary!H12)*(Matrix !$C$8:$H$8=Summary!J12)*(Matrix!$C$2:$H$7))

This formula works great until one of the growth rates =0. It doesn't seem
to be able to pick up the percentage payout. For example, of Growth rate #1
= 0% and growth rate #2 = 10%, the customer should get 1.5% discount. Can
anyone help me pleaes?

Growth #1
9999.90% 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% 5% 10% 15% 20% 25% 10000%
Growth #2

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Sumproduct with Matrices

Thank you so much. I should have thought of that. Thanks again.

"Toppers" wrote:

If your data starts in row 2, then B2:B7 excludes the 0%. Equally if Growth 2
can be 0% this not include in C8H8.

I think you need another column to cater for 0%

=SUMPRODUCT((Matrix!$B$2:$B$8=Summary!H12)*(Matrix !$C$9:$I$9=Summary!J12)*(Matrix!$C$2:$I$8))

9999.90% ? 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% ? 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% ? 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% ? 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% ? 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% ? 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% ? ? ? ? ? ? ?
0.00% 5% 10% 15% 20% 25% 10000%

HTH

"Stacey" wrote:

I have the following matrix: The numbers in the column to the far left are
the range for the first growth and the numbers on the last row are the ranges
for the second growth. The percentages in the middle represent the discount
rate that the customer gets for the combination of growths. I am using the
following formula:

=SUMPRODUCT((Matrix!$B$2:$B$7=Summary!H12)*(Matrix !$C$8:$H$8=Summary!J12)*(Matrix!$C$2:$H$7))

This formula works great until one of the growth rates =0. It doesn't seem
to be able to pick up the percentage payout. For example, of Growth rate #1
= 0% and growth rate #2 = 10%, the customer should get 1.5% discount. Can
anyone help me pleaes?

Growth #1
9999.90% 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% 5% 10% 15% 20% 25% 10000%
Growth #2

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Sumproduct with Matrices

See BJ's reply re "intermediate" values.

"Stacey" wrote:

Thank you so much. I should have thought of that. Thanks again.

"Toppers" wrote:

If your data starts in row 2, then B2:B7 excludes the 0%. Equally if Growth 2
can be 0% this not include in C8H8.

I think you need another column to cater for 0%

=SUMPRODUCT((Matrix!$B$2:$B$8=Summary!H12)*(Matrix !$C$9:$I$9=Summary!J12)*(Matrix!$C$2:$I$8))

9999.90% ? 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% ? 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% ? 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% ? 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% ? 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% ? 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% ? ? ? ? ? ? ?
0.00% 5% 10% 15% 20% 25% 10000%

HTH

"Stacey" wrote:

I have the following matrix: The numbers in the column to the far left are
the range for the first growth and the numbers on the last row are the ranges
for the second growth. The percentages in the middle represent the discount
rate that the customer gets for the combination of growths. I am using the
following formula:

=SUMPRODUCT((Matrix!$B$2:$B$7=Summary!H12)*(Matrix !$C$8:$H$8=Summary!J12)*(Matrix!$C$2:$H$7))

This formula works great until one of the growth rates =0. It doesn't seem
to be able to pick up the percentage payout. For example, of Growth rate #1
= 0% and growth rate #2 = 10%, the customer should get 1.5% discount. Can
anyone help me pleaes?

Growth #1
9999.90% 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% 5% 10% 15% 20% 25% 10000%
Growth #2



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Sumproduct with Matrices

Thank you for helping. I was able to get Topper's to work. I appreciate
your time.

"bj" wrote:

are you sure you are getting the right values for the other areas
what happens when you enter 4% and 12 %
you don't have a line for 0 % in your matrix
if the column b and row 8 is supposed to represent "up to and including"
I would recommend inverting the table such that the value matrix goes in c3
as 1% to H8 as 5.5 %
set C2:H2 as 0,5,10,15,20,25 %
Set B3:B8 as 0,5,10,15,20,25 %

now =vlookup(Summary!H12,B3:H8,match(Summary!U12,B2:H2 ,0),0)



"Stacey" wrote:

I have the following matrix: The numbers in the column to the far left are
the range for the first growth and the numbers on the last row are the ranges
for the second growth. The percentages in the middle represent the discount
rate that the customer gets for the combination of growths. I am using the
following formula:

=SUMPRODUCT((Matrix!$B$2:$B$7=Summary!H12)*(Matrix !$C$8:$H$8=Summary!J12)*(Matrix!$C$2:$H$7))

This formula works great until one of the growth rates =0. It doesn't seem
to be able to pick up the percentage payout. For example, of Growth rate #1
= 0% and growth rate #2 = 10%, the customer should get 1.5% discount. Can
anyone help me pleaes?

Growth #1
9999.90% 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% 5% 10% 15% 20% 25% 10000%
Growth #2

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Sumproduct with Matrices

I have inserted columns that take the actual growth rates and rounds them up
to the nearest matrix value, this way the intermediate values are counted.
Thank you.

"Toppers" wrote:

See BJ's reply re "intermediate" values.

"Stacey" wrote:

Thank you so much. I should have thought of that. Thanks again.

"Toppers" wrote:

If your data starts in row 2, then B2:B7 excludes the 0%. Equally if Growth 2
can be 0% this not include in C8H8.

I think you need another column to cater for 0%

=SUMPRODUCT((Matrix!$B$2:$B$8=Summary!H12)*(Matrix !$C$9:$I$9=Summary!J12)*(Matrix!$C$2:$I$8))

9999.90% ? 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% ? 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% ? 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% ? 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% ? 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% ? 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% ? ? ? ? ? ? ?
0.00% 5% 10% 15% 20% 25% 10000%

HTH

"Stacey" wrote:

I have the following matrix: The numbers in the column to the far left are
the range for the first growth and the numbers on the last row are the ranges
for the second growth. The percentages in the middle represent the discount
rate that the customer gets for the combination of growths. I am using the
following formula:

=SUMPRODUCT((Matrix!$B$2:$B$7=Summary!H12)*(Matrix !$C$8:$H$8=Summary!J12)*(Matrix!$C$2:$H$7))

This formula works great until one of the growth rates =0. It doesn't seem
to be able to pick up the percentage payout. For example, of Growth rate #1
= 0% and growth rate #2 = 10%, the customer should get 1.5% discount. Can
anyone help me pleaes?

Growth #1
9999.90% 2.25% 4.00% 4.50% 5.00% 5.50% 8.00%
25% 2.00% 3.50% 4.00% 4.50% 5.00% 7.00%
20% 1.75% 3.00% 3.50% 4.00% 4.50% 6.00%
15% 1.50% 2.50% 3.00% 3.50% 4.00% 5.00%
10% 1.25% 2.00% 2.50% 3.00% 3.50% 4.50%
5% 1.00% 1.50% 2.00% 2.50% 3.00% 4.00%
0% 5% 10% 15% 20% 25% 10000%
Growth #2

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
how do i square matrices? sparkskey Excel Worksheet Functions 4 April 26th 23 07:47 PM
Comparing two matrices [email protected] Excel Discussion (Misc queries) 1 May 1st 07 02:20 PM
inverse matrices Chey Excel Discussion (Misc queries) 6 January 31st 07 12:14 AM
matrices Eiman Excel Discussion (Misc queries) 0 December 9th 05 11:01 PM
How to solve y =f(x,y) using matrices? Ane Excel Worksheet Functions 1 July 27th 05 02:37 AM


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