ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   macro to convert text string (https://www.excelbanter.com/excel-programming/275645-re-macro-convert-text-string.html)

Tom Ogilvy

macro to convert text string
 
Assume Williamson, Josh is in A1

in B1
=Left(A1,Find(" ",A1)-1)

in C1
= right(A1,Len(A1)-(len(B1)+2))

--
Regards,
Tom Ogilvy


"Josh" wrote in message
om...
My macro skills are a bit rusty, so I need some help on this one. An
example of the problem at hand: I would like to be able to convert a
text string in one cell([williamson, josh] or [josh williamson]) to
two different cells (williamson in cell 1 and josh in cell 2.

Thanks for the help





All times are GMT +1. The time now is 10:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com