Whoa, whoa whoa there.

Whenever you find yourself passing a handful of IF statements think again. Almost always there is a better way.

Have you for instance considered a VLOOKUP, or a LOOKUP of some description or perhaps the common INDEX(MATCH()) combination?

... and welcome to the forum by the way...