Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default Duplicate Item Numbers

Hi All,

Column A has hundreds of item numbers.
Most are NOT duplicated, but I could have as many as 10 to 15 item
numbers with duplications and each number could be duplicated 3 to 10
times or more.

Question:

I need a formula for column B which will return a unique number for
each set of duplicates.

I appriciate any help you can give me.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default Duplicate Item Numbers

You can insert this formula in B2 with your first data cell in A2 and copy down
I use the data range A1:A24 in this example (A1 = the header)

=IF(COUNTIF($A$1:$A$24,A2)=1,"Unique",IF(COUNTIF($ A$1:$A$24,A2)=0,"Empty","Duplicate("& COUNTIF($A$1:A2,A2)&")"))


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"lehigh46" wrote in message ...
Hi All,

Column A has hundreds of item numbers.
Most are NOT duplicated, but I could have as many as 10 to 15 item
numbers with duplications and each number could be duplicated 3 to 10
times or more.

Question:

I need a formula for column B which will return a unique number for
each set of duplicates.

I appriciate any help you can give me.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default Duplicate Item Numbers

DataRefiner can insert the formulas for you if you want
http://www.rondebruin.nl/datarefiner.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Ron de Bruin" wrote in message ...
You can insert this formula in B2 with your first data cell in A2 and copy down
I use the data range A1:A24 in this example (A1 = the header)

=IF(COUNTIF($A$1:$A$24,A2)=1,"Unique",IF(COUNTIF($ A$1:$A$24,A2)=0,"Empty","Duplicate("& COUNTIF($A$1:A2,A2)&")"))


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"lehigh46" wrote in message ...
Hi All,

Column A has hundreds of item numbers.
Most are NOT duplicated, but I could have as many as 10 to 15 item
numbers with duplications and each number could be duplicated 3 to 10
times or more.

Question:

I need a formula for column B which will return a unique number for
each set of duplicates.

I appriciate any help you can give me.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default Duplicate Item Numbers

On Fri, 8 Jun 2007 19:29:30 +0200, "Ron de Bruin"
wrote:

DataRefiner can insert the formulas for you if you want
http://www.rondebruin.nl/datarefiner.htm


Ron,
Thanks for the formula. It's not exactly what I was looking for but I
can use this in other applications. It works well with one of my other
spread sheets.

The end result of what I want would look like the example below.
I could then auto filter column B and just see the occurences of item
number 4, or 5, or 10, etc.

A B
1
2
3
4 1
4 1
4 1
5 2
5 2
6
7
8
9
10 3
10 3
10 3
10 3
10 3
10 3
10 3
10 3
24
25 4
25 4
26
27 5
27 5
27 5
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Duplicate Item Numbers

Assume row 1 either a header row or blank row and your data start in A2:A28

In B2: =IF(COUNTIF($A$2:$A$28,A2)1,MAX($B$1:B1)+(A1<A2) ,"")

copy down


"lehigh46" wrote:

On Fri, 8 Jun 2007 19:29:30 +0200, "Ron de Bruin"
wrote:

DataRefiner can insert the formulas for you if you want
http://www.rondebruin.nl/datarefiner.htm


Ron,
Thanks for the formula. It's not exactly what I was looking for but I
can use this in other applications. It works well with one of my other
spread sheets.

The end result of what I want would look like the example below.
I could then auto filter column B and just see the occurences of item
number 4, or 5, or 10, etc.

A B
1
2
3
4 1
4 1
4 1
5 2
5 2
6
7
8
9
10 3
10 3
10 3
10 3
10 3
10 3
10 3
10 3
24
25 4
25 4
26
27 5
27 5
27 5



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default Duplicate Item Numbers



Thanks Roger. this is it





On Fri, 08 Jun 2007 13:09:40 -0400, lehigh46
wrote:

Hi All,

Column A has hundreds of item numbers.
Most are NOT duplicated, but I could have as many as 10 to 15 item
numbers with duplications and each number could be duplicated 3 to 10
times or more.

Question:

I need a formula for column B which will return a unique number for
each set of duplicates.

I appriciate any help you can give me.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default Duplicate Item Numbers


I ment to thank DOMINIC........... apoliogies



On Tue, 12 Jun 2007 08:18:33 -0400, lehigh46
wrote:



Thanks Roger. this is it





On Fri, 08 Jun 2007 13:09:40 -0400, lehigh46
wrote:

Hi All,

Column A has hundreds of item numbers.
Most are NOT duplicated, but I could have as many as 10 to 15 item
numbers with duplications and each number could be duplicated 3 to 10
times or more.

Question:

I need a formula for column B which will return a unique number for
each set of duplicates.

I appriciate any help you can give me.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Duplicate Item Numbers

I completely misread your question.

Domenic got it right.

--
Regards

Roger Govier


"lehigh46" wrote in message
...


Thanks Roger. this is it





On Fri, 08 Jun 2007 13:09:40 -0400, lehigh46
wrote:

Hi All,

Column A has hundreds of item numbers.
Most are NOT duplicated, but I could have as many as 10 to 15 item
numbers with duplications and each number could be duplicated 3 to 10
times or more.

Question:

I need a formula for column B which will return a unique number for
each set of duplicates.

I appriciate any help you can give me.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Item numbers result in item description in next field in Excel Cheryl MM Excel Worksheet Functions 1 February 20th 07 03:51 PM
Splitting item numbers Spencer Excel Discussion (Misc queries) 5 October 11th 06 07:35 PM
item numbers in a list that update if a row is deleted hot dogs Excel Discussion (Misc queries) 2 September 15th 06 08:38 AM
duplicate numbers Pam Coleman Excel Discussion (Misc queries) 1 October 11th 05 09:21 PM
How do I delete a character from a list of item numbers? TIANA Excel Worksheet Functions 3 May 9th 05 04:08 PM


All times are GMT +1. The time now is 11:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"