Hi everyone,
I am stuck on a formula and was hoping someone could help.
A bit of background of what I need the formula to do.

Each cell within range A2-A21 has either a 'Y' or 'N' in it.

Cell A1 needs to calculate the number of Y's in that range and display either a 0, 1 or 2 depending on
the number of Y's as follows:

Zero Y's = display 0
10 or less Y's = display 1
11-20 Y's = display 2

Appreciate any help