Type an excel formula and increment it

Hi, thank you.

What if I don’t know the row count, and I don’t know until each row to increment.