Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hey gurus-
I am getting a list of names imported into Excel. All the names are in the order of LAST NAME FIRST MI/[SPOUSE] FIRST [SPOUSE] MI. All of them have their last name at the beginning, and they're all merged into the same cell. I am trying to print out mailers, so I need the 1st name moved to the back of the line so it prints out normally. How would I write a macro to do this? The only way I can think of is to signal is off the very 1st SPACE- everything before that space gets added to the end of the line. Is this possible to do? How do I do this? I'm not very good at VB, so I don't know where to even start on this one... example- My Data- Smith John D/Jane A I need- John D & Jane A Smith Thanks! D |
#2
![]()
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You don't need VBA, this formula will do it if all structured as per your
example =SUBSTITUTE(MID(A1,FIND(" ",A1)+1,255)&" "&LEFT(A1,FIND(" ",A1)),"/"," & ") -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "D" wrote in message news:9%hUc.58512$Oi.14233@fed1read04... Hey gurus- I am getting a list of names imported into Excel. All the names are in the order of LAST NAME FIRST MI/[SPOUSE] FIRST [SPOUSE] MI. All of them have their last name at the beginning, and they're all merged into the same cell. I am trying to print out mailers, so I need the 1st name moved to the back of the line so it prints out normally. How would I write a macro to do this? The only way I can think of is to signal is off the very 1st SPACE- everything before that space gets added to the end of the line. Is this possible to do? How do I do this? I'm not very good at VB, so I don't know where to even start on this one... example- My Data- Smith John D/Jane A I need- John D & Jane A Smith Thanks! D |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Switching Text | Excel Discussion (Misc queries) | |||
Switching Information | Excel Discussion (Misc queries) | |||
Switching cells | Excel Discussion (Misc queries) | |||
Switching Sheets | Excel Programming | |||
Switching userfoms | Excel Programming |