Commit c82f0f27 authored by Morten Welinder's avatar Morten Welinder

MINA, MAXA: no data causes 0 result.

This matches what MIN and MAX do.  It's not particularly sane.
parent 4732d524
......@@ -17,6 +17,7 @@ Morten:
* New function MINIFS.
* New function MAXIFS.
* Fix criteria function issue with errors in the selector area.
* Fix corner case for MINA and MAXA.
--------------------------------------------------------------------------
Gnumeric 1.12.31
......
......@@ -2687,7 +2687,7 @@ static GnmValue *
gnumeric_maxa (GnmFuncEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
gnm_range_max,
range_max0,
COLLECT_ZERO_STRINGS |
COLLECT_ZEROONE_BOOLS |
COLLECT_IGNORE_BLANKS |
......@@ -2712,7 +2712,7 @@ static GnmValue *
gnumeric_mina (GnmFuncEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
gnm_range_min,
range_min0,
COLLECT_ZERO_STRINGS |
COLLECT_ZEROONE_BOOLS |
COLLECT_IGNORE_BLANKS |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment