Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

How to calculate an AVG of numbers in a column "A" where only including records containing value "X" in the column B

Topic Labels: Formulas
Solved
Jump to Solution
243 2
cancel
Showing results for 
Search instead for 
Did you mean: 

Could somebody help with a formula? Thanks in advance :slightly_smiling_face:

1 Solution

Accepted Solutions
Robin_Travis
5 - Automation Enthusiast
5 - Automation Enthusiast

Hi Ziga

I think you should be able to do this by using groups. If you group by column B and then set the column A to average. You will get an average for each group. If you just want to see the group averages, collapse their contents and you will have a summary row for each group. One thing to note, if you have any empty entries in the group, it will distort the average. e.g. say one group has 5 items + an extra blank row - the average will be divided by 6 rather than 5. Hope this helps

See Solution in Thread

2 Replies 2
Robin_Travis
5 - Automation Enthusiast
5 - Automation Enthusiast

Hi Ziga

I think you should be able to do this by using groups. If you group by column B and then set the column A to average. You will get an average for each group. If you just want to see the group averages, collapse their contents and you will have a summary row for each group. One thing to note, if you have any empty entries in the group, it will distort the average. e.g. say one group has 5 items + an extra blank row - the average will be divided by 6 rather than 5. Hope this helps