MAX Function
The MAX function is a premade function in Excel, which finds the highest number in a range.
It is typed =MAX
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.
How to use the =MAX function:
- Select a cell (
G5) - Type
=MAX - Double click the MAX command
- Select a range (
D2:D21) - Hit enter
Let's have a look at an example!
Find the Pokemon which has the highest total stats in the range D2:D21:
Name Type 1 Type 2 Total stats
Mankey Fighting 305
Poliwrath Water Fighting 510
Victreebel Grass Poison 490
Tentacool Water Poison 335
Magneton Electric Steel 465 MAX
Dewgong Water Ice 475
Cloyster Water Ice 525
Onix Rock Ground 385
Dragonair Dragon 420
Pidgeotto Normal Flying 349
Rattata Normal 253
Beedrill Bug Poison 395
Doduo Normal Flying 310
Kingler Water 475
Nidoqueen Poison Ground 505
Hitmonchan Fighting 455
Charmeleon Fire 405
Arbok Poison 438
Gastly Ghost Poison 310
Magikarp Water 200
That's great! The function has successfully found the highest value, 525. Cloyster has the highest Total stats of the Pokemons in the range D2:D21.
Let's add text to a cell in the range D2:21 to see what happens. Type Alakazam to D8.
Nice going. The function ignores the text typed in the range. 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 D2:D21.