averaging different cells from specified categories

bob hanle

New Member
Joined
Mar 17, 2014
Messages
18
I want to average cells in different columns which meet a minimum criteria, i.e. > 2.0, from specified categories list in the first column. Example: I want to select a category listed in column A and average the numbers listed in columns C and F for that category which meet a minimum threshold. Thanks
 
So the question is: Can I write a "sumproduct" formula that utilizes the data in Row 2 for "total trades" data in the separate columns of B, F, & J for a weighted average in the same row "for WR%" columns C, G, & K?

You want a single result (weighted average) for:

NetTotalWR%ProfitNetTotalWR%ProfitNetTotalWR%Profit
ProfitTradesProfitFactorProfitTradesProfitFactorProfitTradesProfitFactor
308
62.666546.154276.19
29564.417357.532751.85
31963.646870.594348.84
30963.117653.953278.13

<tbody>
</tbody>

Right?
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
You want a single result (weighted average) for:

Net
Total
WR%
Profit
Net
Total
WR%
Profit
Net
Total
WR%
Profit
Profit
Trades
Profit
Factor
Profit
Trades
Profit
Factor
Profit
Trades
Profit
Factor
308
62.66
65
46.15
42
76.19
295
64.41
73
57.53
27
51.85
319
63.64
68
70.59
43
48.84
309
63.11
76
53.95
32
78.13

<tbody>
</tbody>

Right?

I want a weighted average for each row of data, because each row represents a unique category, not all the data combined. Thanks!
 
Upvote 0
I want a weighted average for each row of data, because each row represents a unique category, not all the data combined. Thanks!

NetTotalWR%ProfitNetTotalWR%ProfitNetTotalWR%ProfitWeighted
ProfitTradesProfitFactorProfitTradesProfitFactorProfitTradesProfitFactorAverage
308
62.666546.154276.1961.44339759
29564.417357.532751.8562.27997468
31963.646870.594348.8463.25906977
30963.117653.953278.1362.59316547

<tbody>
</tbody>

M4, copy down:

=SUMPRODUCT(CHOOSE({1,2,3},B4,F4,J4),CHOOSE({1,2,3},C4,G4,K4)/SUM(B4,F4,J4))
 
Upvote 0
Net
Total
WR%
Profit
Net
Total
WR%
Profit
Net
Total
WR%
Profit
Weighted
Profit
Trades
Profit
Factor
Profit
Trades
Profit
Factor
Profit
Trades
Profit
Factor
Average
308
62.66
65
46.15
42
76.19
61.44339759
295
64.41
73
57.53
27
51.85
62.27997468
319
63.64
68
70.59
43
48.84
63.25906977
309
63.11
76
53.95
32
78.13
62.59316547

<tbody>
</tbody>

M4, copy down:

=SUMPRODUCT(CHOOSE({1,2,3},B4,F4,J4),CHOOSE({1,2,3},C4,G4,K4)/SUM(B4,F4,J4))[/QUOTE

I haven't tried the formula yet, but it looks like exactly what I need. I'll let you know how it turns out. I assume 1,2,& 3 in the brackets are constants in the formula. Okay, I'm a little out of the loop but what does "M4" mean? Sorry about that stupid question.
 
Upvote 0
Aladin, once again you came through brilliantly. It works perfectly on my charts. Many, many, thanks again for your tutoring and creating the formulas for me. It's a real pleasure to have you help me in learning to use excel. I can't thank you enough for not only your expertise but for your prompt responses. Bob Hanle
 
Upvote 0
Aladin, once again you came through brilliantly. It works perfectly on my charts. Many, many, thanks again for your tutoring and creating the formulas for me. It's a real pleasure to have you help me in learning to use excel. I can't thank you enough for not only your expertise but for your prompt responses. Bob Hanle

You are welcome. Thanks for the kind feedback.
 
Upvote 0

Forum statistics

Threads
1,215,616
Messages
6,125,862
Members
449,266
Latest member
davinroach

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