Can anyone guide me how to generate sequence number for n numbers of digits present in a excel column in the form of repeating arrays of "2", "1" and "4". For Example if the cell Range A2:A6 is having cell value as "2" then it should have a sequence of 1,2,3,4,5 likewise for A7:A12 having cell value as "4" then it should have a sequence of 1,2,3,4,5. For now i am able to generate the sequence number for the first set of array for each digit value "2" "4" and "1" by using COUNTIF like COUNTIF(A$2:A2,A2). The solution i am looking into is that for every set of array it should start the sequence from 1 and end at the total count of the digit value for that set of array. Auto-Sequnce-Number.xls is attached herewith for reference.
Bookmarks