siddharthnk
New Member
- Joined
- Jun 20, 2013
- Messages
- 48
Hi All,
I need help with an excel formula which will allocate serial numbers a set of numbers in a column. The data is as follows.
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl63, width: 64"]YES/NO[/TD]
[TD="class: xl63, width: 64"]CODES[/TD]
[TD="class: xl63, width: 64"]SERIAL NO'S[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12345[/TD]
[TD="class: xl63, width: 64"]1[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12346[/TD]
[TD="class: xl63, width: 64"]2[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]NO[/TD]
[TD="class: xl63, width: 64"]12356[/TD]
[TD="class: xl63, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12345[/TD]
[TD="class: xl63, width: 64"]1[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]NO[/TD]
[TD="class: xl63, width: 64"]12356[/TD]
[TD="class: xl63, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12357[/TD]
[TD="class: xl63, width: 64"]3[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12346[/TD]
[TD="class: xl63, width: 64"]2[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12346[/TD]
[TD="class: xl63, width: 64"]2[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12347[/TD]
[TD="class: xl63, width: 64"]4[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12347[/TD]
[TD="class: xl63, width: 64"]4[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, the first column in a yes/no column which has only yes's and no's which are formulated based on certain other criteria based on information present in other cells in the same row. The second column consists of project codes.
What I need is a formula which will allocate serial numbers to the third column based on the combination of yes's and the codes. As you can see in the screenshot, any code which is repeated with a yes has the same serial number has the same serial number. The rows where there is a no in the first column needs to be blank. Also, the codes will not be sorted in ascending or descending order and will keep increasing every week.
I need help with an excel formula which will allocate serial numbers a set of numbers in a column. The data is as follows.
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl63, width: 64"]YES/NO[/TD]
[TD="class: xl63, width: 64"]CODES[/TD]
[TD="class: xl63, width: 64"]SERIAL NO'S[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12345[/TD]
[TD="class: xl63, width: 64"]1[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12346[/TD]
[TD="class: xl63, width: 64"]2[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]NO[/TD]
[TD="class: xl63, width: 64"]12356[/TD]
[TD="class: xl63, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12345[/TD]
[TD="class: xl63, width: 64"]1[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]NO[/TD]
[TD="class: xl63, width: 64"]12356[/TD]
[TD="class: xl63, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12357[/TD]
[TD="class: xl63, width: 64"]3[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12346[/TD]
[TD="class: xl63, width: 64"]2[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12346[/TD]
[TD="class: xl63, width: 64"]2[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12347[/TD]
[TD="class: xl63, width: 64"]4[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 64"]YES[/TD]
[TD="class: xl63, width: 64"]12347[/TD]
[TD="class: xl63, width: 64"]4[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, the first column in a yes/no column which has only yes's and no's which are formulated based on certain other criteria based on information present in other cells in the same row. The second column consists of project codes.
What I need is a formula which will allocate serial numbers to the third column based on the combination of yes's and the codes. As you can see in the screenshot, any code which is repeated with a yes has the same serial number has the same serial number. The rows where there is a no in the first column needs to be blank. Also, the codes will not be sorted in ascending or descending order and will keep increasing every week.