ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   string forumla - before the and, after the and (https://www.excelbanter.com/excel-discussion-misc-queries/99040-string-forumla-before-after.html)

harpscardiff

string forumla - before the and, after the and
 

i've got a column with names - mr and mrs - some are seperated by large
space; mr blah mrs blah and some are seperated with an
"and" mr blah "and" mrs blah.....

how do i construct the formula so mr blah and mrs blah is seperate.,
obviously the forumla will be entered in different columns, but thats
as far as i get.....

a quick reply would be much appreciated

any queries, let me know
Thanks


--
harpscardiff
------------------------------------------------------------------------
harpscardiff's Profile: http://www.excelforum.com/member.php...o&userid=25960
View this thread: http://www.excelforum.com/showthread...hreadid=561032


Ardus Petus

string forumla - before the and, after the and
 
First use:
=SUBSTITUTE(A1,REPT(" ",10),",")
Then use DataText to ColumnsDelimited with "," separator

HTH
--
AP

"harpscardiff" a
écrit dans le message de news:
...

i've got a column with names - mr and mrs - some are seperated by large
space; mr blah mrs blah and some are seperated with an
"and" mr blah "and" mrs blah.....

how do i construct the formula so mr blah and mrs blah is seperate.,
obviously the forumla will be entered in different columns, but thats
as far as i get.....

a quick reply would be much appreciated

any queries, let me know
Thanks


--
harpscardiff
------------------------------------------------------------------------
harpscardiff's Profile:
http://www.excelforum.com/member.php...o&userid=25960
View this thread: http://www.excelforum.com/showthread...hreadid=561032





All times are GMT +1. The time now is 03:33 PM.

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