trying to multiply values based on criteria, not sure sumproduct will work or not

dtslater

Board Regular
Joined
Jul 10, 2008
Messages
65
[TABLE="width: 500"]
<tbody>[TR]
[TD]Acct[/TD]
[TD]Name[/TD]
[TD]Return[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]John[/TD]
[TD].25[/TD]
[/TR]
</tbody>[/TABLE]

I have a long list I'm trying to apply this formula too but cannot figure it out. I need to multiply the records in the Return column based on the Acct. I was able to use {=PRODUCT((E952:E963/100)+1)} on just the Return column to get the number I want. How can I take that formula, or similar formula, and apply the criteria of the account number? My data contains ~1000 rows and each client has 12 months so I need a formula I can drag down that will multiply the cells but only for a specific account #.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
This is sort of what you want:


Excel 2010
ABCD
1AcctNameReturn
2123John0.2511.64153218
3123John0.2511.64153218
4123John0.2511.64153218
5123John0.2511.64153218
6123John0.2511.64153218
7123John0.2511.64153218
8123John0.2511.64153218
9123John0.2511.64153218
10123John0.2511.64153218
11123John0.2511.64153218
12123John0.2511.64153218
13456Jim0.3536.64419807
14456Jim0.3536.64419807
15456Jim0.3536.64419807
16456Jim0.3536.64419807
17456Jim0.3536.64419807
18456Jim0.3536.64419807
19456Jim0.3536.64419807
20456Jim0.3536.64419807
21456Jim0.3536.64419807
22456Jim0.3536.64419807
23456Jim0.3536.64419807
24456Jim0.3536.64419807
Sheet9
Cell Formulas
RangeFormula
D2{=PRODUCT(IF($A$2:$A$24=A2,1+$C$2:$C$24))}
Press CTRL+SHIFT+ENTER to enter array formulas.


Not sure why you're dividing by 100 when the .25 is already a decimal (basis pts perhaps ???) but that's easily adjusted in the formula.

Another way is to add 1 to each cell with copy/paste special and create a pivot table with product as the value field setting.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,571
Members
452,652
Latest member
eduedu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top