Format status in a table