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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,036
Messages
6,122,794
Members
449,095
Latest member
m_smith_solihull

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