Guys, need your help with writing a UDF that gets a string and convert it into numeric value.
Rules:
R => "."
K => multiply by 1000
M => multiply by 1000000
Examples:
38R2 = 38.2
45K2 = 45200
1M5 = 1500000
Guys, need your help with writing a UDF that gets a string and convert it into numeric value.
Rules:
R => "."
K => multiply by 1000
M => multiply by 1000000
Examples:
38R2 = 38.2
45K2 = 45200
1M5 = 1500000
Are you sure that you want a UDF? Your multipliers won't return the results that you have in your post.
Maybe something like this
Thanks, RoyUK, much appreciate it!
Turned your code into UDF:
I wasn't sure how you intended using a UDF
Don’t have an account yet? Register yourself now and be a part of our community!