Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default cuting some text from field

Hi,

I need some basic script that will allow me to separate text, after "@"
sign from textfield.
For example I have .
I need "company-****ry" to be placed next to the e-mail adres in the
excel spreadsheet.

A B
company-country
company-country2
......

I have over 1000 e-mail adreses so I need some script to do this. Last
time I had only 60 so I made that by my own :).

But 1000 e-mail adreses is too much for me :)

Thanks for help

--
ukash
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default cuting some text from field

You can do this with formulas. This will get you the data after the @ sign:

=MID(A1,FIND("@",A1)+1,255)

To get rid of the .com, you can use the left function:

LEFT(B1,LEN(B1)-4)

Or one large formula:

=LEFT(MID(A1,FIND("@",A1)+1,255),LEN(MID(A1,FIND(" @",A1)+1,255))-4)


You can use the same logic with code.

"ukash" wrote:

Hi,

I need some basic script that will allow me to separate text, after "@"
sign from textfield.
For example I have .
I need "company-****ry" to be placed next to the e-mail adres in the
excel spreadsheet.

A B
company-country
company-country2
......

I have over 1000 e-mail adreses so I need some script to do this. Last
time I had only 60 so I made that by my own :).

But 1000 e-mail adreses is too much for me :)

Thanks for help

--
ukash

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default cuting some text from field

Damon Longworth wrote:
You can do this with formulas. This will get you the data after the @ sign:

=MID(A1,FIND("@",A1)+1,255)

To get rid of the .com, you can use the left function:

LEFT(B1,LEN(B1)-4)

Or one large formula:

=LEFT(MID(A1,FIND("@",A1)+1,255),LEN(MID(A1,FIND(" @",A1)+1,255))-4)


Thanks :)
You have helped me a lot :)


--
ukash
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
Date field from text field Jack Deuce Excel Worksheet Functions 3 July 21st 09 10:33 PM
Trouble sorting first by a dates field and then by a text field. trainer07 Excel Discussion (Misc queries) 1 December 6th 06 12:25 AM
Changing a text field to a date field juliet New Users to Excel 4 February 21st 06 09:52 PM
How to keep leading zero without changing field to text field? Deni Excel Discussion (Misc queries) 1 October 24th 05 10:48 PM
HELP!! Populate text in single XL field, or bulk copy text into 1 field filmfatale[_2_] Excel Programming 0 December 9th 03 02:30 PM


All times are GMT +1. The time now is 02:52 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"