MAXA

MAXA(value1 [,value2] [..])

Returns the largest value in a list, table or cell range (including logical values and text).

value1The first value.
value2(Optional) The second value.

REMARKS
* This function is identical to the MAX function except that cell references to logical values and text are included.
* This function includes hidden cells.
* This function excludes empty cells. See Example 8.
* Arguments that are just numbers are included.
* Arguments that are just numbers passed as text ("3") are included. See Example 15.
* Arguments that are just logical values are included. True evaluates to 1. False evaluates to 0. See Example 18.
* Arguments that are just text will generate a #VALUE! error. See Example 16.
* Arguments that are references to cells containing zeros are included. See Example 9.
* Arguments that are references to cells containing dates are included and the date serial number is used. See Example 12.
* Arguments that are references to cells containing logical values are included. See Example 11.
* Arguments that are references to cells containing text are included. See Example 10.
* Arguments that are references to cells containing error values will be returned. See Example 14.
* Arguments that are references to empty cells are excluded. See Example 8.
* Arguments that are arrays containing logical values are included. See Example 20.
* Arguments that are arrays containing text are included. See Example 19.
* You can have a maximum of 255 arguments.
* You can use the MAX function to return the largest value.
* You can use the MAXIFS function to return the largest value that satisfies multiple conditions.
* You can use the MAXAVISIBLE - User Defined Function to exclude hidden cells.
* This is similar to the AVERAGEA, COUNTA and MINA functions.
* For the Microsoft documentation refer to support.microsoft.com
* For the Google documentation refer to support.google.com

 AB
1=MAXA(1, 2, 3) = 3-5
2=MAXA(1, 2, 3, 0) = 3-10
3=MAXA(-2, -3, 4, 5, 6) = 6-15
4=MAXA({-2, -3, 4, 5, 6}) = 6 
5=MAXA(B1:B3) = -50
6=MAXA(B1, B2, B3) = -5text
7=MAXA(B1, B2, B3, B4) = -5TRUE
8=MAXA(B1, B2, B3, B5) = 0FALSE
9=MAXA(B1, B2, B3, B6) = 0=DATE(2024, 1, 1) = 01 Jan 2024
10=MAXA(B1, B2, B3, B7) = 0=10/0 = #DIV/0!
11=MAXA(B1, B2, B3, B8) = 0 
12=MAXA(B1, B2, B3, B9) = 45292 
13=MAXA(named_range) = 3 
14=MAXA(B1, B2, B3, B10) = #DIV/0! 
15=MAXA(2, "3") = 3 
16=MAXA(-2, TRUE) = 1 
17=MAXA(-2, FALSE) = 0 
18=MAXA(-2, "some text") = #VALUE! 
19=MAXA({-2, "some text"}) = -2 
20=MAXA({-2, TRUE}) = -2 

1 - What is the largest of the values (1,2,3).
2 - What is the largest of the values (1,2,3,0).
3 - What is the largest of the values (-2,-3,4,5,6).
4 - What is the largest of the values in the array {-2, -3, 4, 5, 6}.
5 - What is the largest of the values in range "B1:B3".
6 - What is the largest of the values in range "B1", "B2" and "B3".
7 - What is the largest of the values in range "B1", "B2", "B3" and "B4". B4 is empty so this gets included.
8 - What is the largest of the values in range "B1", "B2", "B3" and "B5". B5 is zero so this gets included.
9 - What is the largest of the values in range "B1", "B2", "B3" and "B6". B6 is text so this gets included.
10 - What is the largest of the values in range "B1", "B2", "B3" and "B7". B7 is a logical value so this gets included. TRUE is replaced with 1.
11 - What is the largest of the values in range "B1", "B2", "B3" and "B8". B8 is a logical value so this gets included. FALSE is replaced with 0.
12 - What is the largest of the values in range "B1", "B2", "B3" and "B9". B9 is a date so this gets included as a date serial number.
13 - What is the largest of the values in the named range that refers to the range "B1:B3".
14 - What is the largest of the values in range "B1", "B2", "B3" and "B10". B10 contains an error so that gets returned.
15 - What is the largest of these values (2, "3"). Text values that are actually numbers are included.
16 - What is the largest of these values (-2, TRUE). Logical values passed as arguments are included. TRUE is replaced with 1.
17 - What is the largest of these values (-2, FALSE). Logical values passed as arguments are included. FALSE is replaced with 0.
18 - What is the largest of these values (-2, "some text"). Text values passed as arguments generate an error.
19 - What is the largest of the values in the array {-2, "some text"}. Text values inside arrays are excluded.
20 - What is the largest of the values in the array {-2, TRUE}. Logical values inside arrays are excluded.

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top