What you are talking about is you want to color code a column instead of all the cells in a row for that you can refer to these two links and find what solution suits you the best.
Please mark the answer as helpful if it helps.
something like this?
Find the attached workbook for reference.
If this reply helps, mark it as helpful/correct
Thank you so much, im able to replicate this into mine and it works well!