Split Concatenated String

twoplustwo

Registered User.
Local time
Yesterday, 23:42
Joined
Oct 31, 2007
Messages
507
Hi guys,

Hope you're all well.

Any ideas on the most efficient way to isolate the last characters in the below string:

"HW $161.14 Q45BB6LPQ5"

The number of spaces between the dollar value and code might change fwiw.

Thanks.
 
Should have been clearer :) The end " Q45BB6LPQ5" part.
 
Based on the example that was provided, I would assume that using a combination of the Right(), Len(), and InstrRev() should be what you are looking for. Something like:

Right(YourString,InstrRev(YourString, " ",Len(YourString))-1)
 

Users who are viewing this thread

Back
Top Bottom