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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,223,883
Messages
6,175,167
Members
452,615
Latest member
bogeys2birdies

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