If the number of rows and all values is fixed, so it looks like no problem.
Other way, you can make it a lookup table to can easily changes rows and values.
Or make it a "function" for improve the visibility of the part of code where it is inserted that "if".