我正在尝试获取某一范围内的列的最大值,而忽略该列中的NA()值。非NA()列中的所有数据均大于零。我尝试忽略 i=initial;
start:
if( !(i<=MAX) ) goto end;
do_something();
i++;
goto start;
end:
,而AGGREGATE函数没有NA(), >=0
仅MAX函数。
MAXIFS
它显示=MAXIFS(SR_Layer2,Chainage,">="&D12,Chainage,"<="&E12,SR_Layer2,"<>NA()")
=MAXIFS(SR_Layer2,Chainage,">="&D12,Chainage,"<="&E12,SR_Layer2,">=0")