![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 38
|
I have a column of numbers sorted in ascending order. How can I quickly identify those that are identical?
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Use the formula in a Formula Is setup: =COUNTIF($A$1:$A$100,A1)>1 where $A$1:$A$100 is the range of interest. |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
For a list beginning in cell A2 enter the formula...
=IF(OR(A2=A3,A2=A1),A2,"") ...into B2 and copy down. [ This Message was edited by: Mark W. on 2002-04-19 11:58 ] |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Of course, you could just use a PivotTable as previously described here...
http://www.mrexcel.com/board/viewtop...c=5714&forum=2 |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Hi Kimbo:
If your numbers start in cell A2, I put the following formula in B2 and then dragged down to highlite all cell values that were replicated ... =IF(A2=A1,A1,"") HTH [ This Message was edited by: Yogi Anand on 2002-04-19 12:15 ] |
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Yogi, here are the differences between our approaches...
{"Data","Yours ","Mine" ;1,"",1 ;1,1,1 ;1,1,1 ;2,"","" ;3,"",3 ;3,3,3 ;4,"","" ;5,"",5 ;5,5,5} ...your's only "flags" the last duplicate row because A2=A1 only "looks backward" whereas OR(A2=A3,A2=A1) "looks" both "backward and forward". [ This Message was edited by: Mark W. on 2002-04-19 15:28 ] |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Feb 2002
Location: Ahmedabad Gujarat
Posts: 303
|
download the file 'compare range' (file nos 12)
http://www.pexcel.com/download.htm. by the way using of count function give me the idea and i have just created a workbook uniqueentries in this workbook you can add only unique entries in a column. well thank to the board for making me think about count functions..... nishith desai http://www.pexcel.com |
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
I got it! My solution shows replications only, whereas your solution shows all identical groups that have replications, and I believe that's what the original request was about. Thank you! Thank You! |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|