ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Total instances of the same numbers from one column? (https://www.excelbanter.com/excel-worksheet-functions/140571-total-instances-same-numbers-one-column.html)

Aimcorep

Total instances of the same numbers from one column?
 
How do I total the number of occurances of one number from a column? I would
like to return the total in a seperate column at the first occurance of each
new number. If the list contains 8 cells with the number 12345, I would like
that total, 8, to be referenced in the next column at the first occurance of
the number and so on.
Suggestions?
--
Aimcorep

Toppers

Total instances of the same numbers from one column?
 
If your data is in column A (starting A1) then in B1 (and copy down)

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

HTH

"Aimcorep" wrote:

How do I total the number of occurances of one number from a column? I would
like to return the total in a seperate column at the first occurance of each
new number. If the list contains 8 cells with the number 12345, I would like
that total, 8, to be referenced in the next column at the first occurance of
the number and so on.
Suggestions?
--
Aimcorep


PCLIVE

Total instances of the same numbers from one column?
 
One way,

=IF(MATCH(A1,A:A,0)=ROW(),COUNTIF(A:A,A1),"")

HTH,
Paul

"Aimcorep" wrote in message
...
How do I total the number of occurances of one number from a column? I
would
like to return the total in a seperate column at the first occurance of
each
new number. If the list contains 8 cells with the number 12345, I would
like
that total, 8, to be referenced in the next column at the first occurance
of
the number and so on.
Suggestions?
--
Aimcorep





All times are GMT +1. The time now is 05:18 PM.

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