I am working on an attendance portal
Screenshot of Portal
I want to change the cell color based on the text in cell, like if a cell contain "P" then its background color must be green and for "A" it must be Red. How to achieve this?