+ Reply to Thread
Results 1 to 3 of 3

Deleting repeating lines but keeping the original

  1. #1
    Registered User
    Join Date
    09-21-2018
    Location
    United States
    MS-Off Ver
    2016
    Posts
    3

    Deleting repeating lines but keeping the original

    Hello, I am working on a report at work in which there are several hundreds of lines (sometimes thousands) that repeat the same data. I am looking for a way to keep the initial line of data but delete the rest of the duplicates. I will post a picture of the spreadsheet below. I'm not sure if using a macro or VBA coding is the best option or if there is a simpler function but thought I would give this a shot. For example, line 2295 repeats until line 2299 and i would like to only keep the information on line 2295 and so on and so forth.
    Attached Images Attached Images

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Deleting repeating lines but keeping the original

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Deleting repeating lines but keeping the original

    Hi muhammadc,

    You are looking for Advanced Filter using "Unique Only" box checked. Read about it at:

    https://www.contextures.com/xladvfilter01.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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] keeping original value to a different column
    By nicetohaveyou in forum Excel General
    Replies: 3
    Last Post: 03-15-2015, 04:35 PM
  2. Deleting Repeating Lines of Data
    By ISUCyclones in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2014, 12:26 PM
  3. Keeping a number string even after deleting lines
    By cheddarthief in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2011, 04:00 PM
  4. Using VBA to add new results but keeping original in cell?
    By peakymatt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-19-2008, 08:35 PM
  5. keeping original sheets as original
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2008, 05:33 AM
  6. Copying data but keeping original
    By mellowe in forum Excel General
    Replies: 2
    Last Post: 01-12-2006, 10:25 AM
  7. [SOLVED] Keeping a transfered value the same after changing the original va
    By DeVon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-04-2005, 04:06 AM

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