Does the above not cover this ?Originally Posted by DonkeyOte post#3
ie compare unique count to count of non-blanks - if not the same you have duplicates.
Does the above not cover this ?Originally Posted by DonkeyOte post#3
ie compare unique count to count of non-blanks - if not the same you have duplicates.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Another alternative to the above would be to use a Frequency Array
=COUNT(IF(FREQUENCY(IF(A7:A9&C7:C9<>"",MATCH(A7:A9&"@"&C7:C9,A7:A9&"@"&C7:C9,0)),ROW(A7:A9)-ROW(A7)+1)>1,1))
confirmed with CTRL + SHIFT + ENTER
(if greater than 0 then duplicates)
Last edited by DonkeyOte; 08-17-2010 at 07:46 AM. Reason: typo in formula re: @
A unique list in column D based on the values in columns A and C
![]()
Sub unique() [D1:D18] = [if(countif(offset(D1,,,row(A1:A18)-if(row(D1:D18)=1,0,1)),A1:A18 & C1:C18)=0,A1:A18 & C1:C18,"")] End Sub
DonkeyOte,
The last formula you gave me works perfectly. I didn't know I could use @ to concatenate 2 ranges.
Thanks,
Xrull
Concatenation is achieved with & ... the use of @ is to delimit the two values from one another so as to avoid false positives
Consider
A1: Car C1: pet
A2: Carpet C1: [blank]
Comparing A1:A2&C1:C2 it would appear that we have 2 instances of Carpet whereas in fact we have just one.
To avoid the false positive we delimit A & C with a character otherwise not found in the strings - this way Car@pet and Carpet@ do not get flagged as a match.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks