Is there anyway to accomplish this Excel function in VBA?
A5 =0, returns P
A5 =1,returns Q
A5 =5,returns U
etc...
A5 =0, returns P
A5 =1,returns Q
A5 =5,returns U
etc...
Code:
=LOOKUP(LEFT($A$5,1),{"0","1","2","3","4","5","6","7","8","9"},{"P","Q","R","S","T","U","V","W","X","Y"})[/CODE