A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You can also use the if statement: IF(B3=B2,A2,A2+1).
You set the first cell value to 1. If the value of the second cell if the second column is equal to value of the first cell in the second column, then you pick the preview cell in the first column. Once you have the formula and double click on it to repeat for all the cells, you go at the end of the last cell and fix it value.
That will do it.
Below is an example of the output
| 1 | fjs |
|---|---|
| 2 | fdds |
| 3 | dss |
| 3 | dss |
| 4 | pl |
| 4 | pl |
| 5 | m |
| 6 | kdd |
| 6 | kdd |
| 6 | kdd |
| 7 | lows |
| 7 | lows |
| 7 | lows |
| 7 | lows |
| 8 | qasd |
| 9 | cdsd |
| 9 | cdsd |
| 9 | cdsd |
| 9 | cdsd |
| 10 | fff |
| 10 | fff |
| 10 | fff |
| 11 | pl |
| 12 | a |