I have an excel sheet where I am doing the old school type prison math....IIII and the fifth is counted as one but in this case I am saying that for every four X's subtract one from an on going count resides in T19.

How can I word this?

The only thing I can think of is this:

If Q4 = "xxxx" then T19 - 1

This doesn't quite get it though