Dear Excel experts,
I will appreciate your help on the following:
I have a column of cells like the following:
johnsmith (js@domain.com)
I need a formula that takes away js@domain.com and puts it in the side cell
thanks in advance for your time and know-how
Marcello
Barcelona
Data > Text to columns, Delimited, Next, in the Other box put (, Finish.
Then replace ) with nothing in col B.
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
have you a few more examples?
but for that i'd use data text to columns delimited
use ( as delimiter. that would split it
johnsmith js@domain.com)
then find ) replace with nothing
lol it took me longer to type that than shg.
Last edited by martindwilson; 03-20-2010 at 09:53 PM.
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
... oh, and welcome to the forum.
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
thanks to you both guys, itīs been years (maybe more than 10) that I havenīt used excel formulas, so excuse me if I ask for the whole formula as to be written:
and yes, martindwilson, it could be like this
(letīs say they are in cells A1, A2, A3)
johnsmith (js@domain.com)
marystewart (marys@otherdomain.com)
marktwain (mark.twain@gmail.com)
so, if you could please state the whole formula I should write in B1, B2, B3 to get js@domain.com in B1, marys@otherdomain.com in B2, mark.twain@gmail.com in B3
thanks once again ... Iīm desperate because I have 2.700 cells and doing it by hand itīs a nightmare
Marcello
Barcelona
Hi,
go with shg's suggestion:
- select all cells with email addresses in the column. (make sure that the columns to the right are empty)
- click Data - Text to columns - tick "delimited" - click Next
- tick "other" and enter ( as the delimiter - click Finish
Now your email addresses are in their own column, all ending with a ")".
- Hit Ctrl-H to open the Find and replace dialog.
- Enter a ) in the "Find What" box and leave the "Replace With" box empty.
- Click Replace all.
Now the trailing ) is gone from all email addresses.
Alternatively, with your data in column A, starting in row 1, use this formula in B1 and copy down
=SUBSTITUTE(MID(A1,FIND("(",A1)+1,99),")","")
Then copy the result column and use Paste Special - Values to paste into another column. You can then delete column B.
Last edited by teylyn; 03-21-2010 at 06:40 AM.
teylyn
Microsoft MVP - Excel
At Excelforum, you can say "Thank you!" by clicking theicon below the post.
Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.
or formula approach for both see attached
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
you are amazing, guys!
not only for the speed on answering back and for your expertise, but for helping for nothing in return, something very unusual these days ...
grateful regards,
Marcello
Barcelona
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks