Its another version of anchal_khare's solution. The above given pattern in post# 3 matches 2B2495 or 2Q2345 or 1B2495 or 1Q2345. I didn notice that you need to change 1 to 2. Below is the modified one. Instead of writing [0-9] four times we code as [0-9]\{4\} which also means the same.
sed 's/^1\([A-Z][0-9]\{4\}$\)/2\1/' inputfile > outfile