Thanks for the help. The only problem with this is counting sub codes for major codes. For example, lets say in one cell I have (P2a, H4b, P3t, A2b). On my counts tab, in the cell that counts "P" (a major code), it also counts P2a and P3t as just P. This is because of the wild cards. I need...