I have a lifting spreadsheet. In the spreadsheet, I track sets, and I also have a keycode system to track the muscle group that was used in each exercise. For each exercise I put down the keycode for the muscle groups hit in the exercise, and I want to have a separate sheet that checks the keycodes ranges, and if there is for example 'C' for chest, then it will navigate two columns to the left and add the amount of sets to the sum of chest sets in the other sheet. How can I do this? Another example could be that if the keycode is 'CF' then it would navigate two columns to the left and add the amount of sets to the sum of both chest and front delts in the other sheet. Here is the main exercise sheet (and below that is the counter sheet).
(The '#' columns signify the keycode columns)
Here is the counter sheet just to show my idea
