HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The MAX function is a premade function in Google Sheets, which finds the highest number in a range
The MAX function is a premade function in Google Sheets, which finds the highest number in a range.
It is typed =MAX
and gets a list of cells:
=MAX(value1, [value2, ...])
You can select cells one by one, but also ranges, or even multiple ranges.
The function ignores cells with text. It will only work for cells with numbers.
Note: There is another function called =MIN
, which finds the lowest value in a range, the opposite of MAX.
Let's have a look at an example!
Find the highest total stats in the range C2:C21
:
F3
)=MAX
C2:C21
for the Total stats valuesNow, the function returns the highest value from the cells in the range:
525
. Cloyster has the highest Total stats of the Pokemons in this list.
Let's add text to a cell in the range C2:C21
to see what happens. Type Alakazam to into the cell C8
:
510
is returned as the new highest value, since the old one was replaced with text. Poliwrath is now the Pokemon with the highest Total stats in the range C2:C21
.
function copyFormulas(elementId){ /* Get the text field */ var copyText = document.getElementById(elementId); /* Select the text field */ copyText.select(); copyText.setSelectionRange(0, 99999); /* For mobile devices */ /* Copy the text inside the text field */ navigator.clipboard.writeText(copyText.value) .then(() => { alert('Range copied to clipboard.\nIt can now be pasted into the Google Sheets spreadsheet.') }) .catch((error) => { alert(`Copy failed! ${error}`) }) }