A > B returns TRUE when A follows B in Excel's comparison order, and FALSE
otherwise.
="10">2 yields TRUE — every text outranks every number.
=TRUE>0 yields TRUE — every logical outranks every number.
Both are stated by the contract as empirically observed type ordering rather than numeric-text
coercion. They are worth memorizing in this direction, because > is the operator readers
actually write when they filter: =A1>100 behaves quite differently on a column of numbers
than on a column of numbers stored as text, and the difference is not a rounding problem, it
is a kind problem. Text beats the threshold unconditionally.
Arguments
Position
Name
Meaning
0
A
Left operand: the candidate greater value. Required.
1
B
Right operand: the candidate lesser value. Required.
Arity is exactly 2; no optional arguments, no defaults. Order is load-bearing.
Try it
Quirks
Result and edge cases
Equal operands give FALSE; > is strict, and its equality is the family's normalized
one, so a pair that differs in the 16th significant digit is expected to give FALSE
rather than TRUE.
Different kinds give the kind ordering: number < text < logical.
Blank operands. Context-sensitive: blank behaves as 0 against a number, "" against
text, FALSE against a logical. So =A1>0 is FALSE for an empty A1, but =A1>-1 is
TRUE — an empty cell participates in comparisons as a value, not as an absence, and
ISBLANK is the function that asks the other question.
Text ordering. Case-insensitive; collation beyond that is out of the contract's slice.
Arrays. Ordinary broadcast with #N/A for unsupplied coordinates.
Errors
data/functions/FUNC.OP_GREATER_THAN.json records no Microsoft documentation URL (docs is
null).
Punctuation before a Japanese repeat mark sorts one way after a Latin letter, the other after Han
Comparing a string with punctuation before a repeat or prolonged-sound mark against the same string without the punctuation, the order depends on the character at the start. After a Latin letter the punctuated string is smaller: "a-ゝx" < "aゝx". After a Han character it is larger: "時-ゝx" > "時ゝx". This held for every pair read, with the marks ゝ, 々 and ー and with hyphen-minus, U+2212 and U+2019 as the punctuation. In all 66 readings the two strings are never equal, and a string with the mark added sorts after the string without it, after Latin and after Han alike: "a−ゝ" > "a−".
Formula
Excel
Mathematical value
="a-ゝx"<"aゝx" Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZAInputs and reference value
Typed formula.
TRUE
—
="a-ゝx">"aゝx" Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZAInputs and reference value
Typed formula.
FALSE
—
="時-ゝx"<"時ゝx" Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZAInputs and reference value
Typed formula.
FALSE
—
="時-ゝx">"時ゝx" Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZAInputs and reference value
Typed formula.
TRUE
—
="a−ゝ"<"aゝ" Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZAInputs and reference value
Typed formula.
TRUE
—
="時−ゝ">"時ゝ" Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZAInputs and reference value
Typed formula.
TRUE
—
="a−ゝ">"a−" Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZAInputs and reference value
Typed formula.
TRUE
—
="時−ゝ">"時−" Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZAInputs and reference value
Derive > from the same three-way comparison core as <. Writing it separately is how
mirror inconsistencies get in.
The cross-type rule must be checked before any attempt to interpret text as a number. An
implementation that "helpfully" parses "10" before comparing gets ="10">2 wrong in the
most visible possible way.
Errors propagate; do not fold them, and do not let a > inside a criteria evaluation take
a different path from a > in a formula.
Rust code
Show the CalcFunc source of this function
Quoted from the public repository DnaCalc/DnaCalc, crates calc-func and calc-fml, at commit 9e1884369a67. Comments are the source's own. A kernel shared with other functions appears once, on its module page.
MAX, LARGE, SORT, FILTER — the ordering and selection functions. MAX ignores text
in a scanned range while > ranks text above every number; the two do not agree about what
"largest" means, and that is by design, not by defect.
COUNTIF(range,">100"), SUMIF, AVERAGEIF, MAXIFS — the criteria mini-language. The
string ">100" is parsed by those functions; it is not this operator, and its treatment of
text and blanks in the scanned range follows the aggregate's scan policy, not this page.
Conditional formatting and data-validation rules use comparison expressions evaluated in
their own contexts; the operator is the same, the surrounding coercion may not be.