Calculating the average of the column next to specific cells

ay123

New Member
Joined
Oct 21, 2020
Messages
11
Platform
  1. MacOS
Hi, I have a question on how to do the following -

For example, I have 2 columns called A and B. In column B, values x, y, and z are there in a random order. In column A, a different number is matched to each cell in col B. I would like to calculate the average of the numbers in col A matched to all of the x's in col B (and the same for the y's and z's). How can I do this? Thanks ?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Another way would be to use a Pivot Table

20 10 24.xlsm
ABCDE
1NumberValueRow LabelsAverage of Number
21xx4.75
35xy6
46zz4.5
53yGrand Total4.9
64z
78x
89y
96z
105x
112z
Averages
 
Upvote 0
Solution

Forum statistics

Threads
1,215,544
Messages
6,125,434
Members
449,223
Latest member
Narrian

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