Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Excel Count Function

$
0
0
Hi, 

Me asking for more help yet again!

I've got the following spreadsheet:



What I need to do is input some code or a Macro where it looks at the data in A2 and then Inputs 1 in B2 and then 2 in B3 if the number in A3 is the same as A2. If the number in A3 is different then the count resets itself to 1 and so on and so forth. The cell for reference is the one directly above it, so each time there is a different number, the counter gets reset to 1 and that number is placed in the adjacent cell in Column B. If the number is the same then the counter gets incremented +1 and placed in the adjacent cell in Column B.

I found some code on here before but I can't for the life of me find it again!

Any help is greatly appreciated!


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>