Excel 2007, showing dups . . .both rows . .

Jeffrey Green

Well-known Member
Joined
Oct 24, 2007
Messages
1,021
I have about 35,000 rows, with Part Number in column B and sorted by Column B.

About 400 are duplicates and I need to see just the duplicate row AND the row above it (the original) . . .

What is the best way to do this with formulas?

Thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I have about 35,000 rows, with Part Number in column B and sorted by Column B.

About 400 are duplicates and I need to see just the duplicate row AND the row above it (the original) . . .

What is the best way to do this with formulas?

Thanks

did u try to arrange the numbers by smallest / largest ? .. it should display the duplicates one after another

to do this, you need to introduce all the numbers into a table as the table would give you option to sort numbers.

if you don't know how to insert a table, i'm sure you'll be able to find help on this either through this forum or google.
 
Upvote 0
The numbers are in one column (B) and sorted.
I highlighted the dups with Excel 2007 conditional formatting, but when I try to AutoFilter by Color, it takes over 10 minutes (or more) to sort by color.
 
Upvote 0
Perhaps I wasn't clear . . . I ONLY want to see the Duplicate rows and the row above it . . . I do NOT want to see the other 30,000 rows.
 
Upvote 0
The numbers are in one column (B) and sorted.
I highlighted the dups with Excel 2007 conditional formatting, but when I try to AutoFilter by Color, it takes over 10 minutes (or more) to sort by color.

place this in column B of your table then sort column B by largest.
=COUNTIF($A$2:$A$50,A2)=1

i hope it helps in terms of speed and efficiency

Edit: if it's not helping, another thing you can do is to insert the forumla above in the column B, but then copy all the columns to a text file and paste again the content of the text file to a new sheet, where you'll sort by column b largets. this way it might be easier for the computer to process the info as there a are no formulas there.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,219
Messages
6,189,696
Members
453,565
Latest member
Mukundan

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