EXCEL SPREADSHEET
EXCEL SPREADSHEET
(OP)
Gentlemen,
How do I make excel check a column (or columns) to see if any 2 cells have the same value or expression? Thanks.
How do I make excel check a column (or columns) to see if any 2 cells have the same value or expression? Thanks.





RE: EXCEL SPREADSHEET
column C has your values in it, from cell C3 to cell C21. Cell D3 holds the function "=COUNTIF($C$3:$C$21,C3)"
Cell D4 holds "=COUNTIF($C$3:$C$21,C4)"
and so on. If there are no matches, column D will hold only 1s. If there are matches, there will be numbers greater than one in column D. Use the max() function to look at the whole column for the max number of matches.
RE: EXCEL SPREADSHEET
Hope this helps!!!
RE: EXCEL SPREADSHEET
I found the answer to your problem at http://j-walk.com/ss/excel/usertips/tip061.htm .
An array formula (entered with ctr-shift-enter) =SUM(1/COUNTIF(A1:A100, A1:A100)) gives the number of distinct entrees in the range. If expression =COUNTA(A1:A100)-SUM(1/COUNTIF(A1:A100,A1:A100)) not equal to zero then the range contains at least two identical values.