ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Duplication number with formula help (https://www.excelbanter.com/excel-worksheet-functions/235173-duplication-number-formula-help.html)

Soth

Duplication number with formula help
 
I have a million lines. There are so many duplications number and cost and
I'd like to keep just ONE number and cost line of any duplication. The rest
of the duplications number will delete. Please see below. Your help with
formula is greatly appreciated.

Regards,
Soth

A B
Number Cost
65663 189,941.00
65663 189,941.00
65663 189,941.00
65663 189,941.00
65675 871,281.00
65675 871,281.00
65675 871,281.00
65675 871,281.00
65934 9,398,216.00
65934 9,398,216.00
65934 9,398,216.00
66430 458,388.00
66430 458,388.00


OssieMac

Duplication number with formula help
 
Advanced Filter should do what you want. Check the box for Unique records.
Look up in Help for more infor on how to use.

Warning! While it should do what you want, ensure that you back up your
workbook first in case it does not return expected results.

--
Regards,

OssieMac


"Soth" wrote:

I have a million lines. There are so many duplications number and cost and
I'd like to keep just ONE number and cost line of any duplication. The rest
of the duplications number will delete. Please see below. Your help with
formula is greatly appreciated.

Regards,
Soth

A B
Number Cost
65663 189,941.00
65663 189,941.00
65663 189,941.00
65663 189,941.00
65675 871,281.00
65675 871,281.00
65675 871,281.00
65675 871,281.00
65934 9,398,216.00
65934 9,398,216.00
65934 9,398,216.00
66430 458,388.00
66430 458,388.00


Ken

Duplication number with formula help
 
Soth

If you have a million lines, you must be using Excel 2007. So,
highlight your data, click Insert, then Table. Your data will be a
table, and it will have some nice formatting. The click on Table
Tools; then Remove duplicates will be an option. After you pick that
you will have a form to allow you to select what columns must match to
constitute a "duplicate". Then click okay, and the duplicates will be
gone.

Good luck.

Ken


On Jun 26, 3:45*pm, Soth wrote:
I have a million lines. *There are so many duplications number and cost and
I'd like to keep just ONE number and cost line of any duplication. *The rest
of the duplications number will delete. *Please see below. *Your help with
formula is greatly appreciated.

Regards,
Soth

A * * * * * * * *B
Number * * *Cost
65663 * * * * 189,941.00
65663 * * * * 189,941.00
65663 * * * * 189,941.00
65663 * * * * 189,941.00
65675 * * * * 871,281.00
65675 * * * * 871,281.00
65675 * * * * 871,281.00
65675 * * * * 871,281.00
65934 * * *9,398,216.00
65934 * * *9,398,216.00
65934 * * *9,398,216.00
66430 * * * * 458,388.00
66430 * * * * 458,388.00



Bernd P

Duplication number with formula help
 
Hello,

I suggest to take my UDF Pstat with =Pstat("count", ...):
http://www.sulprobil.com/html/pstat.html

Regards,
Bernd

Shane Devenshire[_2_]

Duplication number with formula help
 
Hi,

Well if you have a million lines you must be using Excel 2007. Highlight
all the data which you want deleted if there are duplicates and choose the
command Data, Remove Duplicates (new to 2007). Indicate which column of data
define the duplicates and click OK.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Soth" wrote:

I have a million lines. There are so many duplications number and cost and
I'd like to keep just ONE number and cost line of any duplication. The rest
of the duplications number will delete. Please see below. Your help with
formula is greatly appreciated.

Regards,
Soth

A B
Number Cost
65663 189,941.00
65663 189,941.00
65663 189,941.00
65663 189,941.00
65675 871,281.00
65675 871,281.00
65675 871,281.00
65675 871,281.00
65934 9,398,216.00
65934 9,398,216.00
65934 9,398,216.00
66430 458,388.00
66430 458,388.00



All times are GMT +1. The time now is 09:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com