Dear forum,
I have a spreadsheet that has numbers in column A (example = 31, 15, 159) I want to count the number (159) each time it occurs and keep a running count of it in say column B... example..... A1 = 159, A2 = 31, A3 = 159, so B3 would show (2) as the number 159 has appeared 2 times thus far...
Any help would be greatly appreciated.![]()
Last edited by leo002000; 09-29-2009 at 12:15 PM.
=countif(a:a,159)
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Like this?
Put in B1
=COUNTIF($A$1:A1,A1)
and extend down
or for previous too:
=COUNTIF(A:A;A1)
"Relax. What is mind? No matter. What is matter? Never mind!"
Many thanks for your swift reply, and advice...
I ended up using =IF(A2=$K$2,COUNTIF($A$2:A2,$K$2),"")
K2 = 159 and the if function removed the counting whilst the cell in column A did not have 159 (K2) in it... so now I only get the count when 159 (k2) appears...
Many thanks, you put me on the right tracks, I am having a brain dead day I think.
Best wishes
Leo![]()
Last edited by leo002000; 09-29-2009 at 12:13 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks