Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Google Sheets: formula to show an incremental counter number for equal values in other column

I have two columns A and B.
Column A is populated with ‘colours’ I need a formula to show in column B an incremental counter number for equal values in Column A. Plase, take a look at this working example to see what I mean: https://docs.google.com/spreadsheets/d/1khYw67ZcIPhzPMijlqS45mirmQSV3d68i3GEXbTpikU/edit?usp=sharing

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

COUNTIFS() is the standard way to make counters like this.

=ARRAYFORMULA(IF(ROW(A:A)=ROW(A1),"Counter",IF(A:A="",,COUNTIFS(A:A,A:A,ROW(A:A),"<="&ROW(A:A)))))
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading