Finding Duplicate Values
Scott,
Whatever formula you could possibly come up with would be wickedly complicated. Better to use a
helper column of formulas, and use that with a filter to get the duplicated values. The only
question is whether you want to flag all of the duplicates or just the second or later repeats.
For example, with your example table in A1:D6, this formula in E2, copied to E3:E6:
=IF(SUMPRODUCT(($A$2:$A$6=A2)*($D$2:$D$6=D2))1, "Duplicate","Unique")
will flag all duplicates, and
=IF(SUMPRODUCT(($A$2:$A2=A2)*($D$2:$D2=D2))1, "Duplicate","Unique")
will flag only the second and on occurences.
HTH,
Bernie
MS Excel MVP
"Scott Halper" wrote in message
oups.com...
I have the current dataset:
Month Fund Region Name
Jan A E SH
Jan B W FW
Feb C S WR
Feb C E SH
Feb C E SH
I have written the following formula to return the unique values in
the name column:
=SUM(IF(FREQUENCY(IF('Data Sheet'!$A$3:$A
$79=(CONCATENATE(CHOOSE(MONTH(TODAY()),"Jan","Feb" ,"Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," Nov","Dec"),"-",YEAR(TODAY()))),IF('Data
Sheet'!$D$3:$D$79="FUND",IF('Data Sheet'!$P$3:$P$79="Region",IF('Data
Sheet'!$J$3:$J$79<"",MATCH("~"&'Data Sheet'!$J$3:$J$79,'Data Sheet'!$J
$3:$J$79&"",0))))),ROW('Data Sheet'!$J$3:$J$79)-ROW('Data Sheet'!$J
$3)+1),1))
I want to have a formula that will return me the duplicate "Names" per
Month per Fund per Region. Basically its taking the formula above and
instead of it using frequency for unique values it would use some
function for duplicate values.
Thanks for the help.
Scott
|