I am working on formatting a cash log for work (work in a restaurant and right now we record this by hand) the problem because each days entry isn’t uniform as the number of people working changes so it means manual formatting for each entry. Below is a picture of what the log I have created looks like 
What I would like to happen when then word “Total” appears in the people working column I would like the next three cells in that row to merge and center the text ( in the picture the red circled cells is what I am going for. Is this possible or is this something that needs to be done manually?