In this lesson we will learn how MAX function works in Google Sheet. The MAX function in Google Sheet is used to find the maximum value from a set of numbers.
- num1 : This can be a numeric value or can be a reference of a cell containing numeric value or a range of cells containing numeric values.
- num2 : This is optional. This can also be a numeric value or a reference of a cell containing numeric value or a range of cells containing numeric values.
Let’s understand with some simple examples. First we have added the below formula in cell A1 and as you can see, from the set of numbers provided the MAX function returns the maximum value which is 9687.11 here.
Now we will see how the MAX function works with cell references. In column A we have cells containing integer, decimal numbers & text values and also empty cell is present there. Now we have added the below formula in cell C1.
Here as you can see the MAX function finds the maximum number which is 152.86 from the cell references provided and the point to note is, it ignores the text and blank values.
With the same dataset we can also see the MAX function works with cell range as well. We have just changed the formula in cell C1 as follows and the result remains same.
The MAX function also works with multiple cell ranges as arguments. Like in the below example we have added two cell ranges A1:A9 & B1:B10 as arguments in MIN function in cell C1. In both ranges there are numbers, blanks, text, special characters and alphanumeric values. The MAX function finds the maximum number among them which is 214 here.