A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Programming
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Delete duplicate rows without deleting entire row



 
 
Thread Tools Display Modes
  #1  
Old July 7th 12, 09:20 AM
Chulius Caesar Chulius Caesar is offline
Junior Member
 
First recorded activity by ExcelBanter: Jun 2012
Location: Melbourne
Posts: 5
Default Delete duplicate rows without deleting entire row

I have a sheet which downloads a table of data using query table into a "raw data" sheet for then copying into a master sheet. The master sheet has the format below. There are a number of tables with different data.
The raw data sheet will hold only queried data for a specific table data set

Master sheet:
_____A ______B___________________F_________G
1____Date____Price_______________Person____Sales
2____ ... _____ .... _______________ ... ______ ....

Basically I need a macro to copy the data from the "Raw data" sheet and append to the end of the table in the "master data" sheet.

I then need to delete duplicate data as there will duplicates from previous queries. That way only new data will be added to the table / sheet.

However, I need to delete duplicates without deleting the entire row as there will be other tables on the master sheet (as above: Table 1 is data/price and Table 2 is person/sales).

All other solutions I have read involve deleting the entire row which is no good since there are other items which would be deleted by this.

Thanks

Last edited by Chulius Caesar : July 7th 12 at 09:24 AM.
Ads
  #2  
Old July 7th 12, 03:35 PM posted to microsoft.public.excel.programming
Don Guillett[_2_]
external usenet poster
 
Posts: 1,506
Default Delete duplicate rows without deleting entire row

On Saturday, July 7, 2012 3:20:26 AM UTC-5, Chulius Caesar wrote:
> I have a sheet which downloads a table of data using query table into a
> "raw data" sheet for then copying into a master sheet. The master sheet
> has the format below. There are a number of tables with different data.
> The raw data sheet will hold only queried data for a specific table data
> set
>
> Master sheet:
> _____A ______B___________________F_________G
> 1____Date____Price_______________Person____Sales
> 2____ ... _____ .... _______________ ... ______ ....
>
> Basically I need a macro to copy the data from the "Raw data" sheet and
> append to the end of the table in the "master data" sheet.
>
> I then need to delete duplicate data as there will duplicates from
> previous queries. That way only new data will be added to the table /
> sheet.
>
> However, I need to delete duplicates without deleting the entire row as
> there will be other tables on the master sheet (as above: Table 1 is
> data/price and Table 2 is person/sales).
>
> All other solutions I have read involve deleting the entire row which is
> no good since there are other items which would be deleted by this.
>
> Thanks
>
>
>
>
> --
> Chulius Caesar


If desired, send your file with explanation and excel version to ME.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Entire Row for duplicate values in selected column porter444 Excel Programming 2 November 24th 08 04:35 PM
Delete entire row if two cells are duplicate Les Stout[_2_] Excel Programming 4 September 15th 06 01:50 PM
How do I delete duplicate records from an entire Excel workbook? Steven B. Excel Discussion (Misc queries) 0 December 6th 05 10:32 AM
How to delete duplicate records when I merge two lists (deleting . rinks Excel Worksheet Functions 10 December 11th 04 01:03 AM
Deleting entire rows Ed C[_3_] Excel Programming 2 June 18th 04 02:14 PM


All times are GMT +1. The time now is 06:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2004-2013 ExcelBanter.
The comments are property of their posters.