Attached is a workbook with a VBA function I am trying to create but have run into some unexpected results.
It works in all test situations EXCEPT when the alpha letter to be converted is either “D” or “E”.
It does work for “D” and “E” if the function is reduced to eliminate the If Then and only operates for 3 digit input with a middle letter.
The attached is only a small example. I was hoping that a function could be used because the real example is far more complex (and works except for “D” and “E”) and would be much better than the excel formula that does work but is extremely long and complex..
Regards,
Tom D.