ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to use OFFSET to determine DUPLICATES in a list? (https://www.excelbanter.com/excel-worksheet-functions/202896-how-use-offset-determine-duplicates-list.html)

myk

How to use OFFSET to determine DUPLICATES in a list?
 
Hello,

I have a list of names in column A (a4:a14). In column B I would like to
indicate if the name in column A is a duplicate. Column A is sorted. Below
is the example - I would like to put my OFFSET function in the DUPLICATE
INDICATOR column and use a 1 to indicate the first occurnace of a name and a
0 for indicating a duplicate.

NAME DUPLICATE INDICATOR
Jack
Jack
Jack
Jill
Fred
Fred
Fred
Fred
Mark
Nancy
Nancy

Thank you!! Mike

Mike H

How to use OFFSET to determine DUPLICATES in a list?
 
Hi,

Put this in B4 and drag down

=IF(COUNTIF($A$4:$A$14,A4)1,"Duplicate","Unique")

Mike

"myk" wrote:

Hello,

I have a list of names in column A (a4:a14). In column B I would like to
indicate if the name in column A is a duplicate. Column A is sorted. Below
is the example - I would like to put my OFFSET function in the DUPLICATE
INDICATOR column and use a 1 to indicate the first occurnace of a name and a
0 for indicating a duplicate.

NAME DUPLICATE INDICATOR
Jack
Jack
Jack
Jill
Fred
Fred
Fred
Fred
Mark
Nancy
Nancy

Thank you!! Mike


John_John

How to use OFFSET to determine DUPLICATES in a list?
 
....or use this:

=(MATCH($A4,$A:$A,0)=ROW())*1

--
John

Ο χρήστης "Mike H" *γγραψε:

Hi,

Put this in B4 and drag down

=IF(COUNTIF($A$4:$A$14,A4)1,"Duplicate","Unique")

Mike

"myk" wrote:

Hello,

I have a list of names in column A (a4:a14). In column B I would like to
indicate if the name in column A is a duplicate. Column A is sorted. Below
is the example - I would like to put my OFFSET function in the DUPLICATE
INDICATOR column and use a 1 to indicate the first occurnace of a name and a
0 for indicating a duplicate.

NAME DUPLICATE INDICATOR
Jack
Jack
Jack
Jill
Fred
Fred
Fred
Fred
Mark
Nancy
Nancy

Thank you!! Mike


myk

How to use OFFSET to determine DUPLICATES in a list?
 
perfect John - Thanks!

myk

"John_John" wrote:

...or use this:

=(MATCH($A4,$A:$A,0)=ROW())*1

--
John

Ο χρήστης "Mike H" *γγραψε:

Hi,

Put this in B4 and drag down

=IF(COUNTIF($A$4:$A$14,A4)1,"Duplicate","Unique")

Mike

"myk" wrote:

Hello,

I have a list of names in column A (a4:a14). In column B I would like to
indicate if the name in column A is a duplicate. Column A is sorted. Below
is the example - I would like to put my OFFSET function in the DUPLICATE
INDICATOR column and use a 1 to indicate the first occurnace of a name and a
0 for indicating a duplicate.

NAME DUPLICATE INDICATOR
Jack
Jack
Jack
Jill
Fred
Fred
Fred
Fred
Mark
Nancy
Nancy

Thank you!! Mike



All times are GMT +1. The time now is 01:51 AM.

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