Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel function: Which value is larger

In Excel, is there a native function that will return the larger of two values? I'm looking to avoid using the IF function. I'm using Excel 2010 Beta if that's worth anything.

For example: GTR(66,24) will return 66.

like image 798
Ryan Rodemoyer Avatar asked Jan 12 '10 14:01

Ryan Rodemoyer


People also ask

Which function returns the largest value in Excel?

What is the MAX Function? The MAX Function[1] is categorized under Excel Statistical functions. MAX will return the largest value in a given list of arguments. From a given set of numeric values, it will return the highest value.

How do you check if a value is greater than another value in Excel?

We can use the IF Function to check if a cell has a value that is greater than the specified criteria. The IF function returns TRUE if the condition is met and FALSE if otherwise.


2 Answers

Try MAX(Cell1, Cell2). It accepts an unlimited number of parameters.

like image 50
Michael Bray Avatar answered Sep 20 '22 06:09

Michael Bray


Have a look at Max

The MAX function, one of Excel's statistical functions, is used to find the largest or maximum number in a given list of values or arguments.

=MAX( argument1, argument2, ... argument30 ) 
like image 44
Adriaan Stander Avatar answered Sep 22 '22 06:09

Adriaan Stander