Find average when other column reads "true"

mark91345

Board Regular
Joined
Feb 11, 2011
Messages
113
Using Office 365 on Windows 10,
When column A is TRUE, I want to find the Average of column B. I know I use could Filter, but I want to create a formula instead. Can someone help?


ASC.xlsx
AB
1T/FPrice
2FALSE0.32
3FALSE0.49
4FALSE0.59
5FALSE0.20
6FALSE0.61
7FALSE0.21
8TRUE0.19
9FALSE0.33
10FALSE0.02
11TRUE0.11
12TRUE0.00
13TRUE0.43
14TRUE0.04
15TRUE0.28
16FALSE0.57
17FALSE0.59
18FALSE0.00
19TRUE0.21
20FALSE0.52
21FALSE0.08
22TRUE0.38
23TRUE0.59
24FALSE0.72
25FALSE0.10
test
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A25Cell Valuecontains "TRUE"textNO
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How about AverageIF:
Book1
ABCDEF
1T/FPriceAVERAGEIF
2FALSE0.320.247777778
3FALSE0.49
4FALSE0.59
5FALSE0.2
6FALSE0.61
7FALSE0.21
8TRUE0.19
9FALSE0.33
10FALSE0.02
11TRUE0.11
12TRUE0
13TRUE0.43
14TRUE0.04
15TRUE0.28
16FALSE0.57
17FALSE0.59
18FALSE0
19TRUE0.21
20FALSE0.52
21FALSE0.08
22TRUE0.38
23TRUE0.59
24FALSE0.72
25FALSE0.1
26
Sheet1
Cell Formulas
RangeFormula
E2E2=AVERAGEIF($A$2:$A$25,"TRUE",$B$2:$B$25)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,813
Messages
6,181,109
Members
453,021
Latest member
Justyna P

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