#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 91
Default repeated value

I have 1 column (A), with 16000 rows and repeated value, i need to count
repeated value and write this in column B, for example:

A B
222 2
222
355 3
355
355
420 2
420


best regards
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default repeated value

Try this in B1:

=IF(COUNTIF(A$1:A1,A1)=1,COUNTIF(A$1:A$16000,A1)," ")

and then copy down to B16000.

Hope this helps.

Pete

On May 28, 12:29*pm, climate
wrote:
I have 1 column (A), with 16000 rows and repeated value, i need to count
repeated value and write this in column B, for example:

A * * * * * * * *B
222 * * * * * * 2
222
355 * * * * * * 3
355
355
420 * * * * * * 2
420

best regards


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default repeated value

Your formula returns 2 for the 3 355's

=IF(AND(A1=A2,A2<A3),COUNTIF($A$1:A2,A2),"")

in A2 and copied down will return the Op's results but if there are
duplicate number further down the list it will give the total of that
number to that point not just the latest series.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Pete_UK" wrote in message
...
Try this in B1:

=IF(COUNTIF(A$1:A1,A1)=1,COUNTIF(A$1:A$16000,A1)," ")

and then copy down to B16000.

Hope this helps.

Pete

On May 28, 12:29 pm, climate
wrote:
I have 1 column (A), with 16000 rows and repeated value, i need to count
repeated value and write this in column B, for example:

A B
222 2
222
355 3
355
355
420 2
420

best regards




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 91
Default repeated value

Hi pete,
Your formula is right
thank you very much
Sandy formula has equal result but one cell shift down(not side by side with
first repeated value).
Thank's sandy
best regards

"Pete_UK" wrote:

Try this in B1:

=IF(COUNTIF(A$1:A1,A1)=1,COUNTIF(A$1:A$16000,A1)," ")

and then copy down to B16000.

Hope this helps.

Pete

On May 28, 12:29 pm, climate
wrote:
I have 1 column (A), with 16000 rows and repeated value, i need to count
repeated value and write this in column B, for example:

A B
222 2
222
355 3
355
355
420 2
420

best regards





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default repeated value

I know you have a couple of answers to work with but you can also use an array:

1) type into cell b2: =FREQUENCY($a$2:$a$16000,$a$2:$a$16000)
2) then highlight cells b2 to b16000 (the cell above and the 16000 empty
rows below it
3) press f2 and ctrl-shift-enter

the advantage is, that the list doesn't have to be sorted to work.
negatives include, you can't insert any more rows (but can copy/paste values
to keep the results then do other things).


"climate" wrote:

Hi pete,
Your formula is right
thank you very much
Sandy formula has equal result but one cell shift down(not side by side with
first repeated value).
Thank's sandy
best regards

"Pete_UK" wrote:

Try this in B1:

=IF(COUNTIF(A$1:A1,A1)=1,COUNTIF(A$1:A$16000,A1)," ")

and then copy down to B16000.

Hope this helps.

Pete

On May 28, 12:29 pm, climate
wrote:
I have 1 column (A), with 16000 rows and repeated value, i need to count
repeated value and write this in column B, for example:

A B
222 2
222
355 3
355
355
420 2
420

best regards



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default repeated value

Sandy,

works okay for me. Did you put it in B2?

Pete

On May 28, 1:20*pm, "Sandy Mann" wrote:
Sorry Pete, I omitted your name at the beginning:

Pete,

Your formula returns 2 for the 3 355's

=IF(AND(A1=A2,A2<A3),COUNTIF($A$1:A2,A2),"")

in A2 and copied down will return the Op's results but if there are
duplicate number further down the list it *will give the total of that
number to that point not just the latest series

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk

"Sandy Mann" wrote in message

...



Your formula returns 2 for the 3 355's


=IF(AND(A1=A2,A2<A3),COUNTIF($A$1:A2,A2),"")


in A2 and copied down will return the Op's results but if there are
duplicate number further down the list it *will give the total of that
number to that point not just the latest series.


--
HTH


Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings



Replace @mailinator.com with @tiscali.co.uk


"Pete_UK" wrote in message
...
Try this in B1:


=IF(COUNTIF(A$1:A1,A1)=1,COUNTIF(A$1:A$16000,A1)," ")


and then copy down to B16000.


Hope this helps.


Pete


On May 28, 12:29 pm, climate
wrote:
I have 1 column (A), with 16000 rows and repeated value, i need to count
repeated value and write this in column B, for example:


A B
222 2
222
355 3
355
355
420 2
420


best regards- Hide quoted text -


- Show quoted text -


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default repeated value

You're welcome - thanks for feeding back.

Pete

On May 28, 1:53*pm, climate wrote:
Hi pete,
Your formula is right
thank you very much
Sandy formula has equal result but one cell shift down(not side by side with
first repeated value).
Thank's sandy
best regards

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default repeated value

Hi Pete,

Yes you are quite correct that is exactly what I did do. My apologies.

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Pete_UK" wrote in message
...
Sandy,

works okay for me. Did you put it in B2?

Pete

On May 28, 1:20 pm, "Sandy Mann" wrote:
Sorry Pete, I omitted your name at the beginning:

Pete,

Your formula returns 2 for the 3 355's

=IF(AND(A1=A2,A2<A3),COUNTIF($A$1:A2,A2),"")

in A2 and copied down will return the Op's results but if there are
duplicate number further down the list it will give the total of that
number to that point not just the latest series

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk

"Sandy Mann" wrote in message

...



Your formula returns 2 for the 3 355's


=IF(AND(A1=A2,A2<A3),COUNTIF($A$1:A2,A2),"")


in A2 and copied down will return the Op's results but if there are
duplicate number further down the list it will give the total of that
number to that point not just the latest series.


--
HTH


Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings



Replace @mailinator.com with @tiscali.co.uk


"Pete_UK" wrote in message
...
Try this in B1:


=IF(COUNTIF(A$1:A1,A1)=1,COUNTIF(A$1:A$16000,A1)," ")


and then copy down to B16000.


Hope this helps.


Pete


On May 28, 12:29 pm, climate
wrote:
I have 1 column (A), with 16000 rows and repeated value, i need to
count
repeated value and write this in column B, for example:


A B
222 2
222
355 3
355
355
420 2
420


best regards- Hide quoted text -


- Show quoted text -




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
maximum repeated value markag Excel Worksheet Functions 2 June 16th 06 08:56 PM
Printing text in a repeated cell/row that is longer than repeated Valerie Dyet Excel Discussion (Misc queries) 1 February 13th 06 03:27 AM
Repeated values in a row reynold Excel Discussion (Misc queries) 1 December 30th 05 01:08 PM
max number repeated Pivotrend Excel Discussion (Misc queries) 5 December 23rd 05 02:48 PM
Repeated row carlo Excel Discussion (Misc queries) 2 December 3rd 04 10:47 AM


All times are GMT +1. The time now is 05:29 AM.

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"