+ Reply to Thread
Results 1 to 4 of 4

Importing data from .txt file...

  1. #1
    Registered User
    Join Date
    04-05-2014
    Location
    New Delhi
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Importing data from .txt file...

    Hi all,

    I have a .txt file containing around 20,000 email addresses. The problem is that there are a number of email addresses repeated more than once, so I want to import the file into excel and remove the dulplicates. I tried importing it but it doesn't gets imported in a single column and when I use 'Remove Duplicates' in the Data tab Excel either says no duplicates found or multiple columns selected when I select the imported data.

    Please let me know if anyone has a solution for this. Thanks in advance.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Importing data from .txt file...

    Hi,

    When you import the file can you use the Fixed Width, or Delimited options to split the text into several columns one of which is the email address

    Take a copy of your file and remove all but say 100 records which cover the various lengths and upload that so that we can see the request in context.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-05-2014
    Location
    New Delhi
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Importing data from .txt file...

    Thanks for replying, as I mentioned the file just has lots of email addresses and no headers. Also I have tried both fixed width and delimited options, but my purpose of removing the duplicate email addresses has not been served.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Importing data from .txt file...

    In that case upload the workbook copy (say 100 rows) as requested.

    There will probably be a way of identifying where the email address is located, probably by looking for the space character at either end of it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need help with importing data from .txt file
    By Mostar1982 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-27-2013, 04:23 AM
  2. Importing a data from a text file - user-defined file
    By DaveSev in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2013, 07:02 PM
  3. Importing data from .txt file
    By Figo007 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2010, 01:35 AM
  4. Importing data file
    By Mohit in forum Excel General
    Replies: 1
    Last Post: 06-01-2006, 02:50 PM
  5. importing data from txt file
    By onelson in forum Excel General
    Replies: 0
    Last Post: 08-02-2005, 09:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1