How to calculate averages of specific cells that ignore 0

lukertomlinson99

New Member
Joined
Nov 6, 2023
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hello, I am struggling to get a formula to work in which it calculates an average of specific cells (A1, E1, F1 etc) rather than a range (A1:F1 e.g.). I want this to be able to ignore the cells containing 0 as it skews the average I want at the end. This is to calculate an average grade for pupils across a year but them having 0 in some cells that will be autopopulated across the year skews it so they seem to be doing terribly. Any thoughts would be appreciated sorry if this doesn't make sense.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Welcome to the Board!

Please show us a realistic example of what your data may look like and the expected results of your example.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hello,
I want to work out an average where the data only has certain cells in it, from the picture these are the ones highlighted red. However, there is many of these mid topic tests and I have my spreadsheet so that each Grade cell is pre-populated so when I enter the score it automatically fills the percentage and grade. When it comes to working out the average I need it to number one not have to involve a range as it is specific cells but also I need it to ignore 0 as it skews the results. In the example provided in the picture the average I would want it to equal is 2 (since I want to ignore 0).
I thought of using AVERAGEIF's however, this is for a range which means it will count the grade and percentage cells! Totally at a loss with this one!

Thanks
 

Attachments

  • Picture1.png
    Picture1.png
    38.9 KB · Views: 9
Upvote 0
I have merged your two threads together. In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.
Your image is also WAY too small for us to read.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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