A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Reorder $String1, $String2 to $String1 $String2?



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2010, 04:16 PM posted to microsoft.public.excel.worksheet.functions
msnyc07
external usenet poster
 
Posts: 97
Default Reorder $String1, $String2 to $String1 $String2?

I've been able to do this for any specific word e.g.

Manager, Department
Manager, Regional

with a basic function but it requires me to re-do for each word.

Is there anyway to set up a function that simply swaps anything before the ,
with anything after (removing the , in the process)?

Thanks in advance for any help!
  #2  
Old April 21st, 2010, 04:24 PM posted to microsoft.public.excel.worksheet.functions
Duke Carey
external usenet poster
 
Posts: 1,027
Default Reorder $String1, $String2 to $String1 $String2?

if your text starts in cell A2, put this in a cell somehwere in that row and
copy down

it will only work on the first set of ", '" that are in each cell

=RIGHT(A2,LEN(A2)-SEARCH(", ",A2,1)-1)&" "&LEFT(A2,SEARCH(", ",A2,1)-1)

"msnyc07" wrote:

I've been able to do this for any specific word e.g.

Manager, Department
Manager, Regional

with a basic function but it requires me to re-do for each word.

Is there anyway to set up a function that simply swaps anything before the ,
with anything after (removing the , in the process)?

Thanks in advance for any help!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.