If you need to find the ranking of rows in Numbers, you can sort, use COUNTIF or use RANK. It gets a little more complex if you have to use multiple values for tie-breakers or rank within groups.
Want to know more about how to use Numbers on your Mac? Check out this MacMost course!