A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
That's because when you use TRIMRANGE are the "." operator on an empty range, Excel returns #REF!. Wrap that in COUNTA and you get 1.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dear Team,
Recently I come across an issue related to the behaviour of the TRIMRANGE function and the DOT (.) operator in cell range calculations.
Here’s the scenario I observed:
COUNTA(A1:A10), the result is correctly returned as 0.COUNTA(TRIMRANGE(A1:A10)) or COUNTA(A1:.A10), the result unexpectedly returns 1, even though all cells in the range are blank.It appears that either the TRIMRANGE function or the DOT operator is interpreting the range as containing at least one non-blank cell, which may indicate a bug or unintended behavior.
Requesting MS team to review this behavior and advise if there is any known explanation or workaround for this outcome
Thank you in advance for your support.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
That's because when you use TRIMRANGE are the "." operator on an empty range, Excel returns #REF!. Wrap that in COUNTA and you get 1.