A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
The first argument in COUNTIF must be a regular or spilled worksheet range. A1:A3 or A1# will both work.
But an array constant like {1;2;3} returns an 'in memory array' rather then a worksheet range (regular or spilled).
Edit: No intent to copy Rory's answer. Didn't see it until after I posted mine.