Excel Auto number row based on criteria
12,211
In B2, try this formula: =CountIf(A$2:A2,A2)
Author by
user2631154
Updated on December 01, 2022Comments
-
user2631154 over 1 year
I'm trying to create a spreadsheet in excel which creates a sequential number in a column (B) depending on the contents of another column. Currently, there are two possibilities of what could be in Column A ("BI" or "GF"). So I want the data to look like this
COL A COLB BI 1 BI 2 GF 1 BI 3 GF 2 GF 3 BI 4 BI 5
I've tried several attempts to do this but can't seem to find a solution. Any help would be greatly appreciated.
-
user2631154 over 7 yearsSo simple yet I just couldn't see it, works a treat, thanks!