The MAX function in Google Sheets is a powerful tool used to determine the maximum value from a range of numeric data. This function is essential for data analysis, enabling users to quickly identify high points in datasets, such as maximum sales, temperatures, or scores.
Syntax
MAX(value1, [value2, ...])
- value1: The first number or range from which to find the maximum value.
- value2: Additional numbers or ranges (optional) to include in the evaluation.
Example #1
MAX(A1:A10)
This formula calculates the highest number found in the range from A1 to A10. For instance, if the values in A1:A10 were {3, 7, 2, 9, 6}, the result would be 9 as it is the largest number in the set.
Example #2
MAX(5, 10, 15, 7)
In this case, the function evaluates the individual numbers and returns the highest, which is 15.
Example #3
MAX(B1:B5, C1:C5)
Here, the function checks both the ranges B1:B5 and C1:C5 for their maximum values combined. If B1:B5 contains {1, 2, 3, 4, 5} and C1:C5 contains {10, 20, 30, 40, 50}, the result will be 50, the largest value overall.
Error handling
- VALUE!: This error occurs when a text value is included in the argument set. Ensure that all inputs are numeric.
- N/A: This message indicates that there are no numeric values in the specified range. Check if the range contains any numbers.
- REF!: This error signifies that the reference used in the function is invalid. Verify the ranges involved in the function call.