Creating averages per user based off contained text in other cell

aspofford

New Member
Joined
Apr 6, 2020
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hi,
This is a copy of some data from pivot tables that list users, their courses and their current course grade averages.
example.xlsx
ABC
1Averages
2User 1
3Art and World Cultures A66%73%
4Art and World Cultures B80%
5Consumer Math A75%61%
6Consumer Math B47%
7English 12 A76%71%
8English 12 B66%
9Forensic Science 191%91%
10Health, Safety and Nutrition#DIV/0!N/A
11USA Test Prep63%63%
12User 2
13Consumer Math A84%
14Consumer Math B51%
15English 12 A91%
16English 12 B65%
17High School ELD56%
18Personal Finance56%
19Physical Science A92%
20Physical Science B60%
21USA Test Prep33%
22User 3
23Algebra 2 A89%
24Algebra 2 B83%
25AP English Literature & Composition A74%
26AP English Literature & Composition B57%
27Environmental Science A96%
28Environmental Science B98%
29USA Test Prep77%
30User 4
31Algebra with Finance B94%
32Honors Chemistry A83%
33Honors Chemistry B94%
34Honors English 12 A90%
35Honors English 12 B69%
36Personal Finance93%
37USA Test Prep100%
Sheet1


I need to average percentages for each user only if they are in Part A and Part B of the same course. The other courses keep their current averages. I entered example averages on in the last column for the 1st user as an example.

There are 4,000+ users and their course names differ per user. Does anyone have an idea on how to best to calculate the averages for Part A and Part B for each course for each user?
Please let me know if you need further information.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
If I understand correctly, you only want to average the values of parts A and B if both A and B contain averages? If this is the case, then enter the following formula:

VBA Code:
=IF(OR(A1="",B1=""""),"",AVERAGE(A1:B1))
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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