Hi,
Is there a way to split a string to remove the rest of the string once it has the symbol $ in it?
Example:
JOHN$$$$ = JOHN
STEVEN$HH = STEVEN
RICHARD$$$$H = RICHARD
Thanks
Hi,
Is there a way to split a string to remove the rest of the string once it has the symbol $ in it?
Example:
JOHN$$$$ = JOHN
STEVEN$HH = STEVEN
RICHARD$$$$H = RICHARD
Thanks
You don't need macro.
Here, try this:
Formula:![]()
=TRIM(LEFT(SUBSTITUTE(A1,"$",REPT(" ",255)),255))
Never use Merged Cells in Excel
You don't need macro.
Here, try this:
Formula:![]()
=TRIM(LEFT(SUBSTITUTE(A1,"$",REPT(" ",255)),255))
Or ...
A B C 1JOHN$$$$ JOHN B1: =LEFT(A1, FIND("$", A1) - 1) 2STEVEN$HH STEVEN 3RICHARD$$$$H RICHARD
Entia non sunt multiplicanda sine necessitate
If you did want VBA though...
![]()
Dim originalString As String, delim As String, result As String originalString = "John$$Example" delim = "$" result = Left$(originalString, InStr(originalString, delim) - 1)
Great!! Thanks guys.!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks