Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Right function vba

Tags:

excel

vba

I want to take everything to the right of the symbol in the string I used

Right(enclosedValue, InStr(enclosedValue, "*") - 0)

where enclosed value is 29,6 *60, so I need it to return *60, but now it returns

,6 *60

Sorry if this question has been asked already, I have just started using vba and I'm a bit confused

like image 779
vlad Avatar asked May 11 '26 23:05

vlad


1 Answers

try with Mid instead:

Mid(enclosedValue, InStr(1, enclosedValue, "*"))
like image 161
Kazimierz Jawor Avatar answered May 14 '26 17:05

Kazimierz Jawor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!