Could you re-attach your file with a few cells (anywhere) with the likes of this picture?
With just 3 possiblities the formula with hard-coded values in was manageable, but as the number of possibilities increases it gets more unwieldy. There are a couple of things we can do: (a) move the possibilities to ranges on a sheet somewhere, (b) be a bit cleverer with the formula!
2021-04-08_105138.png