Modifyrows - selecting the column value with SwitchIf formula?

Yep, coupled code sucks

This could be an intersting read for you