We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

Excel - getting email addresses from cells

2»

Comments

  • Zazen999
    Zazen999 Posts: 6,183 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    Or Fuzzy Ducket
  • isofa
    isofa Posts: 6,091 Forumite
    edited 21 July 2009 at 12:23PM
    Personally I'd write a VBA loop, the using the right and mid functions to go back from the end of the e-mail address until a space was found, then get that position, (you need the length of the string too) and then all the characters right of that output into a new cell, it's complex but would work first time!

    You could probably do it with a complex formula too...

    Or copy the entire list into a text editor (TextPad much better than notepad).

    Search for the spaces and replace with ", " (that's comma space)

    Then save the document as a text file.

    Open (import) into excel as a CSV delimited file, put the data into separate cells, you should then have firstname, surname, email in 3 columns...
  • Zazen999
    Zazen999 Posts: 6,183 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    In an hour and a half I could have copied and pasted the email addresses to a new column...and had a coffee and some food.
  • timbim_2
    timbim_2 Posts: 1,292 Forumite
    1,000 Posts Combo Breaker
    There's the built in text to columns wizard. Can't see why you'd use anything else...
    Ubuntu is an ancient African word, meaning: 'I can't configure Debian'.
  • _Andy_
    _Andy_ Posts: 11,150 Forumite
    Zazen999 wrote: »
    In an hour and a half I could have copied and pasted the email addresses to a new column...and had a coffee and some food.

    Yes but that isn't productive given I'll probably need to do the same procedure in the future.
    I'd rather spend some time finding out a more effective way to do it now.
    But thank you for the immensely helpful post.
  • _Andy_
    _Andy_ Posts: 11,150 Forumite
    Strider590 wrote: »
    No it works seriously, try it again lol

    Paste the list with the spaces replaced, back to excel from notepad then select that new column and do the replace *ZZ with nothing.

    Only using ZZ because unless you have "Buzz Lightyear" on your email list, nobody will have ZZ in the name :p

    * is the wildcard function, by the way.

    In Notepad it's replacing the space between first name and surname with ZZ. But not the space between surname and email, which is strange.
  • _Andy_
    _Andy_ Posts: 11,150 Forumite
    Right I think the problem in both Excel and Notepad is that it's not recognising the space between surname and email address as a space. This would explain why the delimiting suggestion isn't working.
    Any ideas why this would be?
    PS I can't post the actual data due to DPA.

    Thanks
  • kevsan
    kevsan Posts: 238 Forumite
    if its not a space not sure what character it would be.

    if you highlight the 'space' in excel and then copy and paste into the other field option on the delimited options page (where you selected space originally).
    2014 running challenge 471.95 km / 1000 km.
  • kevsan
    kevsan Posts: 238 Forumite
    alternatively as a quick and dirty fix, download and install textpad (https://www.textpad.com) and open the file in that, then use the block select mode (under configure menu) and you can highlight the block of text with emails in and copy & paste to a new file.

    Not a fix as such, but would allow you to get the data.
    2014 running challenge 471.95 km / 1000 km.
  • Zazen999
    Zazen999 Posts: 6,183 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    _Andy_ wrote: »
    Yes but that isn't productive given I'll probably need to do the same procedure in the future.
    I'd rather spend some time finding out a more effective way to do it now.
    But thank you for the immensely helpful post.

    I take it you have done it then???

    Why not just put all 3 pieces of info in different columns in the first place?

    No offence, but it's been quite an inefficient way so far.....
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 354K Banking & Borrowing
  • 254.3K Reduce Debt & Boost Income
  • 455.3K Spending & Discounts
  • 247.1K Work, Benefits & Business
  • 603.7K Mortgages, Homes & Bills
  • 178.3K Life & Family
  • 261.2K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.