Multiply number based on alpha character at the end

jjaidev

New member
Joined
Jan 7, 2014
Messages
1
Reaction score
0
Points
0
HI all,

Need the solution for the below query. Please do assume I have a table as below.

A10G
B100G
C10F


When ever a G is present in the values present in second column, I need the value of the number to be mutiplied by 1000. My output must be
A10G10000
B100G100000
C10F10F


What formula must I put in the third Column in order to get this result.
 
Do you want the F to remain?

If so, then:

=IF(RIGHT(B1)="G",LEFT(B1,LEN(B1)-1)*10,B1)

else use:

=LEFT(B1,LEN(B1)-1)*IF(RIGHT(B1)="G",10,1)
 
Back
Top