I am not sure if I follow your question or I do not see your problem.
=VLOOKUP(A3,F2:G4,2,0)/VLOOKUP(A2,F2:G4,2,0)
Format as percentage should give the same result as dividing the numbers manually or
separately.
If you want a percentage, format as Percentage.