Search&Replace code

I need to process survey results (900 cells) by automating the following logic:
1. If the first two leftmost characters in the text are "a." (without quotes) then replace the whole contents of the cell with a 1. If they are "b.", replace the whole cell contents with a 2, etc.
2. The purpose is to replace 6 possible text answers that begin with a., b., c., d., e., and f. with, respectively, numbers 1, 2, 3, 4, 5, and 0.

I tried the following: duplicate the survey data sheet in Sheet2 and replace cell contents with text function LEFT(A1,2) where A1 is a cell on the original data sheet, so that i end up with only the two leftmost characters in Sheet2 (i.e., a. or b. or c., etc.). But I don't know how to do the following step of replacing the "a." with 1, etc.

Happy to help

Glad to know that my code helped you. If you post your final code with the array someone else may be benefited. Just a suggestion. Happy to help.

Glad it worked

Glad to know that my code helped you. If you post your final code with the array someone else may be benefited. Just a suggestion.

Replacing Cell Contents using IF and Find

Since no one has suggested anything...here is my suggestion:
Copy this and paste in B2.
=IF(LEFT(A2,2)="a.","a 1",IF(LEFT(A2,2)="b.","a 2",IF(LEFT(A2,2)="c.","a 3",IF(LEFT(A2,2)="d.","a 4",IF(LEFT(A2,2)="e.","a 5",IF(LEFT(A2,2)="f.","a 0",""))))))

Replacing Cell Contents using IF and Find

Worked really well and I tried to convert the nested ifs to an array.
Thank you.