Forum Discussion
YeBoldeSquirrel
Feb 18, 2023Copper Contributor
Error when using SEQUENCE within COUNTIF
Excel won't accept this formula, and I don't know why: COUNTIF(SEQUENCE(20); "<9") Wrapping it with like the following is accepted by Excel, but produces 20 rows of VALUE errors: LET( ...
Detlef_Lewin
Feb 18, 2023Silver Contributor
COUNTIF() needs a reference and not an array.
This works:
Formula in A1
=SEQUENCE(20)
Formula in B1
=COUNTIF(A1#,"<9")
Or you could use mathematical logic:
=9-1
HansVogelaar
Feb 18, 2023MVP