The MAX function in Excel extracts the largest value from 2 or more cells or cell ranges. In this post, you'll discover 2 ways to create a MAX formula with examples that you can dissect.
1. Example 1: How to write a basic MAX function in Excel
Consider this simple data:
![Excel base data Excel base data](https://media.officemastery.com/img/2023/03/13120407/Excel-base-data.png)
To extract the largest value from this range, regardless of the order in which they may, or may not, be sorted, using a MAX function:
1. Type =MAX(
2. Select cells A1:A5 with the mouse (you can type the cell range but then you may get human error)
3. Type the closing bracket and press Enter.
![A basic MAX function in Excel A basic MAX function in Excel](https://media.officemastery.com/img/2023/03/13120407/Excel-MAX-function.png)
This calculates the max, 30.
![The result of the MAX function in Excel The result of the MAX function in Excel](https://media.officemastery.com/img/2023/03/13120407/The-result-of-the-MAX-function.png)
2. Anatomy of a MAX function
- Every formula starts with '='.
- MAX tells Excel what to do with the data, i.e. find the maximum number.
- The cells or cell ranges inside the brackets tell Excel what to check.
Here are some examples:
=MAX(A1,A2,A3)
=MAX(A1:A5, C1:C5)
=MAX(A1,C1:C5)
3. Example 2: How to generate a MAX using AutoSum
The AutoSUM button is the beginner's best friend. You'll find it on the Home ribbon.
1. Select the range of cells you wish to check for the highest value, or select the blank cell that will contain the result.
2. Click the AutoSUM button then choose MAX.
![Choosing MAX from the AutoSUM button Choosing MAX from the AutoSUM button](https://media.officemastery.com/img/2023/03/13120408/Choosing-MAX-from-the-AutoSUM-button.png)
3. Excel writes the MAX function for you. Press Enter to lock it in.
4. Example 3: How to find the biggest number in summed data
If you already have data that has been summed, you can analyse this data to find the maximum. In the example below, every 3 months the quarterly column shows the 3-monthly totals. Columns D and H contain SUM functions for each row.
To find the highest quarterly figure, the MAX function refers to the cell ranges D2:D6 and H2:H6.
![MAX function example 3 MAX function example 3](https://media.officemastery.com/img/2023/03/13120407/MAX-function-example-3.png)
5. What next?
I hope you found plenty of value in this post. I'd love to hear your biggest takeaway in the comments below together with any questions you may have.
Have a fantastic day.
![Jason Morrell blog signature Jason Morrell blog signature](https://d1pzfp4ixszkr4.cloudfront.net/img/2015/11/01100151/jason-graffiti-sig-01-200w.jpg)
![500x500 Jason Morrell - Broadwater-19-Water About Jason Morrell](https://d1pzfp4ixszkr4.cloudfront.net/img/2021/01/01094415/500x500-Jason-Morrell-Broadwater-19-Water.png)
About the author
Jason Morrell
Jason Morrell is a professional trainer, consultant and course creator who lives on the glorious Gold Coast in Queensland, Australia.
He helps people of all levels unleash and leverage the power contained within Microsoft Office by delivering training, troubleshooting services and taking on client projects. He loves to simplify tricky concepts and provide helpful, proven, actionable advice that can be implemented for quick results.
Purely for amusement he sometimes talks about himself in the third person.
SHARE