The average function draws a lot from Excel, where we can have one or more columns (or cells in Excel) and return the average of all numbers. So let’s check how to use it efficiently.


It follows a simple pattern.

  1. One or more column

For this article, we’ll build a new List with the following structure:

The calculated will contain the following formula:


will return 


Now let’s try with a choice column. We can have numbers in it so we can try to do the average of all of the selected ones, with the following formula:


will return 


Unfortunately, it’s impossible to use Choice columns to calculate the average, even if they are numbers.

Now let’s check if we put a text column in the middle of the other ones and see what happens.


will return


The return makes sense since the Text field is empty. So now, let’s put a number there.

We would expect an error because we’re using a text field, but SharePoint ignores the field, even if there’s a string instead of a number.

Finally, let’s try only with one number.


will return 


The average is calculated even if there’s only one number.


The average function is limited to 30 parameters, so you can only have 30 numbers or reference columns to calculate the average.


Here are some things to keep in mind.

Don’t hardcode values in the formula.

I didn’t mention this in the examples, but you can have the following formula:


It rarely makes sense to have a fixed number in the formula. Since the formula is not visible in the list, only the result, you may have unexpected results since there is one (or more) extra value in the calculation.

“Hidden” Validation Columns

Since SharePoint works with columns, you can create hidden “validation” columns with the functions validating the data. After that, you can expose to the user the “message” columns that have useful error messages or actions that they can take to solve the problem.

Always deal with errors.

Leaving them for the user to see is horrible, but also you can bring trouble to your own code. If you don’t validate a column, it can be used in other calculations, and the error will cascade. You can have an error in one column, and the issue could be in whole different columns, so deal with issues where they happen.

Don’t nest it.

There’s no real reason to do it, but if you find yourself in a situation where you have nested Average functions in a formula, you should review it and make everything more straightforward.

Please note that formulas may have localization-based differences. For example, you should write “Average” with a comma separating each of the arguments, but if your regional settings are set to Portugal, you should use “;” instead.


Microsoft’s Average Function Reference

Introduction to SharePoint formulas and functions

Back to the SharePoint’s list formula reference.

Photo by Vedrana Filipović on Unsplash

Manuel Gomes

I have 18 years of experience in automation, project management, and development. In addition to that, I have been writing for this website for over 3 years now, providing readers with valuable insights and information. I hope my expertise allows me to create compelling, informative content that resonates with the audience.

View all posts by Manuel Gomes →

Leave a Reply

Your email address will not be published. Required fields are marked *