FormulaCraft

MAXA

MAXA works like MAX but also counts logical values (TRUE=1, FALSE=0) and text (as 0) rather than ignoring them. This matters when your range may contain logical flags you want to treat as numeric in the comparison.

Excel
=MAXA(B2:B5)
Google Sheets
=MAXA(B2:B5)

Verified example

Computed by a real spreadsheet engine on the sample data below.

ItemValue
A10
B25
CTRUE
D5

=MAXA(B2:B5)25

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1Reference the range including possible logical or text values: =MAXA(B2:B5).
  2. 2MAXA converts TRUE to 1, FALSE and text to 0 before finding the maximum.
  3. 3Returns the largest value after those conversions.

Need a version for your data?

Try: “Find the maximum value in a column that includes TRUE/FALSE flags alongside numbers

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: