ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   DUPLICATE VALUES (https://www.excelbanter.com/excel-worksheet-functions/50056-duplicate-values.html)

Saintsman

DUPLICATE VALUES
 
I am adding records and want a warning to appear if there are duplicate
values in 3 columns - Project; Name; Phase
If all three are duplicated then warning phrase should appear
It will be allowable to have 2 out of 3 duplicate ie same Project; same
name; differnt phase is OK

Any takers

Thanks

Alok

Hi,
Say your data is in columns A,B and C in rows 2 to 7 then put this formula
in D2

=IF(SUMPRODUCT(--($A$2:$A$7=A2),--($B$2:$B$7=B2),--($C$2:$C$7=C2))=1,"Unique","Duplicate")

Copy the formula down to D7

Alok

"Saintsman" wrote:

I am adding records and want a warning to appear if there are duplicate
values in 3 columns - Project; Name; Phase
If all three are duplicated then warning phrase should appear
It will be allowable to have 2 out of 3 duplicate ie same Project; same
name; differnt phase is OK

Any takers

Thanks


Saintsman

Alok
Thanks very much

Saintsman

"Alok" wrote:

Hi,
Say your data is in columns A,B and C in rows 2 to 7 then put this formula
in D2

=IF(SUMPRODUCT(--($A$2:$A$7=A2),--($B$2:$B$7=B2),--($C$2:$C$7=C2))=1,"Unique","Duplicate")

Copy the formula down to D7

Alok

"Saintsman" wrote:

I am adding records and want a warning to appear if there are duplicate
values in 3 columns - Project; Name; Phase
If all three are duplicated then warning phrase should appear
It will be allowable to have 2 out of 3 duplicate ie same Project; same
name; differnt phase is OK

Any takers

Thanks



All times are GMT +1. The time now is 04:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com