Serious Problem with GIANT spreadsheet

JAverill

New Member
Joined
May 27, 2008
Messages
2
Okay, I hope someone here can help.
Heres my problem:
I have a huge spreadsheet with 2 columns, and 36,000 rows. The two columns are "Part Number" and "Job Date".
The Part Number column is alpha-neumeric.
For many of the part numbers, there are several duplicate rows with the same part number, but a different date in each.
I need to delete these duplicate rows, keeping only the one with the most recent date for each part number.
I haven't the slightest clue how to go about this, short of manually selecting and deleting each duplicate row, except the newest.
PLEASE tell me that there is an easier way.

Thank you,
John
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
1) Sort the data by part number ascending, date by date descending
2) Use Advanced Filter, unique only, to copy the data to a different location.
if your orginal data is in A:A and B:B and you copied to D:D, then put

=INDEX(B:B,MATCH(D2,A:A,0),1) in E2 and fill down.

D:E has your cleaned data.
 
Upvote 0
Not terribly serious :)

What I did is created some mock data - about 10,000 records. In column C, I added a formula to find the latest date for the current row's part number. In column D, I added a formula to return Yes or No on whether the date in column B matches the date in column C. Now, you can filter column D for "No", and delete those rows.

Note, however, that for the 10,000 rows, column C took about 5 minutes to calculate.

Excel Workbook
ABCD
1Part NumberDateMax DateMatch?
2FFF114Z6/15/20086/15/2008Yes
3SSSS119II4/30/20085/31/2008No
4PPP118C4/24/20084/24/2008Yes
5TTTT111J4/15/20084/15/2008Yes
6OOOO117YY4/26/20084/26/2008Yes
7YYYY113CC7/26/20087/26/2008Yes
8OOO119O5/14/20085/14/2008Yes
9UUU112XX3/11/20083/11/2008Yes
10JJJ119V2/28/20086/4/2008No
Sheet1
 
Upvote 0
Thank you both very much for your help, that problem has been solved, so naturally another one has popped up.
I was hoping you wouldn't mind helping me with one more situation.
Now my problem is with merging data. I have two different excel spreadsheets, one that contains part number and last date used (the one from the previous problem), and one that contains part number and die number. The problem is that they are not all the same part numbers, I.E. some parts may be missing from one list that are on the other.
Somehow, I need to match the last date used data to the die number via the matching part number.
This is totally beyond my experience. Any help would be greatly appreciated
 
Upvote 0
Using my approach, you can accomplish this with a VLOOKUP formula.

Let's say on Sheet2 you have the die and a part number that's contained on the list in Sheet1. You use this formula to get the corresponding value in the max date column:

=VLOOKUP(Sheet2!A1, Sheet1!$A$1:$C$100063, 3, FALSE)
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top