How to increment the values in one column depending upon the values of other column?
For ex
if it is
A B
TS-1
TS-1
TS-1
TS-2
TS-2
TS-3
TS-3
TS-3
TS-3
it should come as
A B
TS-1 TC-1-1
TS-1 TC-1-2
TS-1 TC-1-3
TS-2 TC-2-1
TS-2 TC-2-2
TS-3 TC-3-1
TS-3 TC-3-2
TS-3 TC-3-3
TS-3 TC-3-4
It should be like this in column B depending on the number of values in columm A
=A1 & "-" & COUNTIF(A$1:A1;A1)