Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Noemi
 
Posts: n/a
Default Delete duplicate numbers

How do I delete duplicate numbers from a row using a formula rather then
finding each one seperately.

Thanks
  #2   Report Post  
Max
 
Posts: n/a
Default

One way to extract the uniques list using non-array formulas

Assuming numbers listed in A1 down

Put in B1:
=IF(A1="","",IF(COUNTIF($A$1:A1,A1)1,"",ROW()))

Put in C1:
=IF(ISERROR(SMALL(B:B,ROWS($A$1:A1))),"",
INDEX(A:A,MATCH(SMALL(B:B,ROWS($A$1:A1)),B:B,0)))

Select B1:C1, copy down till the last row of data in col A

Col C will return the list of unique numbers in col A,
neatly bunched at the top
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Noemi" wrote in message
...
How do I delete duplicate numbers from a row using a formula rather then
finding each one seperately.

Thanks



  #3   Report Post  
Max
 
Posts: n/a
Default

well .. if the numbers are listed in row1, in A1 across: A1, B1, C1 ...
then:

Put in A2:
=IF(A1="","",IF(COUNTIF($A$1:A1,A1)1,"",COLUMN()) )

Put in A3
=IF(ISERROR(SMALL(2:2,COLUMNS($A$1:A1))),"",
INDEX(1:1,MATCH(SMALL(2:2,COLUMNS($A$1:A1)),2:2,0) ))

Select A2:A3, copy across till the last col of data in row1

Row3 will return the list of unique numbers in row1,
neatly bunched to the left (in A3, B3, C3 ...)

"deleting duplicates" is equivalent to "extracting uniques"
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


  #4   Report Post  
Biff
 
Posts: n/a
Default

"deleting duplicates" is equivalent to "extracting uniques"

Max, are you a politician by any chance?

<vbg

Biff

"Max" wrote in message
...
well .. if the numbers are listed in row1, in A1 across: A1, B1, C1 ...
then:

Put in A2:
=IF(A1="","",IF(COUNTIF($A$1:A1,A1)1,"",COLUMN()) )

Put in A3
=IF(ISERROR(SMALL(2:2,COLUMNS($A$1:A1))),"",
INDEX(1:1,MATCH(SMALL(2:2,COLUMNS($A$1:A1)),2:2,0) ))

Select A2:A3, copy across till the last col of data in row1

Row3 will return the list of unique numbers in row1,
neatly bunched to the left (in A3, B3, C3 ...)

"deleting duplicates" is equivalent to "extracting uniques"
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--




  #5   Report Post  
Max
 
Posts: n/a
Default

"deleting duplicates" is equivalent to "extracting uniques"
Max, are you a politician by any chance?
<vbg


Doubt I'd be able to survive the harshness of it ! <g

But in the absence of feedback from the OP, just thought to add-on a little
clarification, and another interp angle to the orig. post.
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I delete multiple cells with decimal, not whole, numbers? Implicity Excel Worksheet Functions 2 June 10th 05 11:05 PM
Is there a quick way to delete all duplicate rows in a column? Jellaby Excel Discussion (Misc queries) 3 May 16th 05 10:47 PM
How do I delete duplicate rows in an excel spreadsheet? jsm Excel Discussion (Misc queries) 4 May 14th 05 07:48 PM
prevent duplicate entry for range of numbers 00001 to 99999 in ex. TK Excel Discussion (Misc queries) 4 March 6th 05 03:35 AM
How to delete duplicate rows in Excel 2000? PAL@Emory Excel Discussion (Misc queries) 1 January 28th 05 03:08 PM


All times are GMT +1. The time now is 11:40 PM.

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

About Us

"It's about Microsoft Excel"