I want to extract the number after certain character (single or double digit). If there is no number after that character, it should give the default value of 1. The cell contains alpha-numeric character. I have the predefined character list. If the cell does not contain that character, the result sheet should be left as blank. I have given the possible problem and the expected solution in the table. Help would be acknowledged. Thanks

Expected results
Problem Z X O Mc P S Ck U T

Z X8 O3 Mc P 1 8 3 1 1
Z4 X9 T2 4 9 2
Z2 X8 O2 Mc Ck 2 8 2 1 1
Z5 X5 O3 5 5 3
Z3 X7 U2 S 3 7 1 2
Z2 X4 Mc2 P T 2 4 2 1 1
Z O2 Mc U3 1 2 1 3