#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default excel formula

I have several data with this format:

1 test.msn.com/dfsmnfkmnfdf
1 test.msn.com/defgfdhrh

How can I rearrange them to look like this format:

dfsmnfkmnfdf.test.msn.com
defgfdhrh.test.msn.com

Can someone help me out with the formula?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default excel formula

=MID(A1,FIND("/",A1,1)+1,255) & "." & MID(A1,3,LEN(A1)-FIND("/",A1,1))

--
Gary''s Student - gsnu200854
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default excel formula



"Gary''s Student" wrote:

=MID(A1,FIND("/",A1,1)+1,255) & "." & MID(A1,3,LEN(A1)-FIND("/",A1,1))

--
Gary''s Student - gsnu200854



almost. this resulted to

0R8qzgntg3Rsy4KM1286H. spaces.msn.com/0R8qz
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default excel formula

That formula fails on the 2nd example.

It might be better to find the 1st space rather than assume the start of the
string is always 1<space.

=MID(A1,FIND("/",A1)+1,50)&"."&SUBSTITUTE(MID(A1,FIND("
",A1)+1,100),MID(A1,FIND("/",A1),50),"")

--
Biff
Microsoft Excel MVP


"Gary''s Student" wrote in message
...
=MID(A1,FIND("/",A1,1)+1,255) & "." & MID(A1,3,LEN(A1)-FIND("/",A1,1))

--
Gary''s Student - gsnu200854



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default excel formula

Post the full input cell that caused the output to fail.
--
Gary''s Student - gsnu200854


"eric" wrote:



"Gary''s Student" wrote:

=MID(A1,FIND("/",A1,1)+1,255) & "." & MID(A1,3,LEN(A1)-FIND("/",A1,1))

--
Gary''s Student - gsnu200854



almost. this resulted to

0R8qzgntg3Rsy4KM1286H. spaces.msn.com/0R8qz



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default excel formula

Argh!

I should've known line wrap would fubar the formula!

Here it is in chunks.

Entered all on one line:

=MID(A1,FIND("/",A1)+1,50)&"."&SUBSTITUTE
(MID(A1,FIND(" ",A1)+1,100),MID(A1,FIND
("/",A1),50),"")

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
That formula fails on the 2nd example.

It might be better to find the 1st space rather than assume the start of
the string is always 1<space.

=MID(A1,FIND("/",A1)+1,50)&"."&SUBSTITUTE(MID(A1,FIND("
",A1)+1,100),MID(A1,FIND("/",A1),50),"")

--
Biff
Microsoft Excel MVP


"Gary''s Student" wrote in
message ...
=MID(A1,FIND("/",A1,1)+1,255) & "." & MID(A1,3,LEN(A1)-FIND("/",A1,1))

--
Gary''s Student - gsnu200854





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default excel formula

it worked! thanks!

"T. Valko" wrote:

That formula fails on the 2nd example.

It might be better to find the 1st space rather than assume the start of the
string is always 1<space.

=MID(A1,FIND("/",A1)+1,50)&"."&SUBSTITUTE(MID(A1,FIND("
",A1)+1,100),MID(A1,FIND("/",A1),50),"")

--
Biff
Microsoft Excel MVP


"Gary''s Student" wrote in message
...
=MID(A1,FIND("/",A1,1)+1,255) & "." & MID(A1,3,LEN(A1)-FIND("/",A1,1))

--
Gary''s Student - gsnu200854




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default excel formula

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"eric" wrote in message
...
it worked! thanks!

"T. Valko" wrote:

That formula fails on the 2nd example.

It might be better to find the 1st space rather than assume the start of
the
string is always 1<space.

=MID(A1,FIND("/",A1)+1,50)&"."&SUBSTITUTE(MID(A1,FIND("
",A1)+1,100),MID(A1,FIND("/",A1),50),"")

--
Biff
Microsoft Excel MVP


"Gary''s Student" wrote in
message
...
=MID(A1,FIND("/",A1,1)+1,255) & "." & MID(A1,3,LEN(A1)-FIND("/",A1,1))

--
Gary''s Student - gsnu200854






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
match formula - 2 excel files:#1 hasthis formula, 2nd has the Raw DS Excel Worksheet Functions 4 October 7th 06 12:25 AM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
i edit a formula (excel) then it displays formula not answer caiman Excel Discussion (Misc queries) 2 September 9th 05 02:09 AM


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

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

About Us

"It's about Microsoft Excel"