How to number rows, skip blanks and then ...

pingvin

New Member
Joined
Oct 28, 2017
Messages
15
Hi,

I have a small problem. I have 3 colums A, B and C.
In col A I have Family serial number. All parts in the same family have the same serial number.
In col B I have sub serial numbers. Each sub part has it's own designated serial number.
In col C I would like Excel to number each row/sub part in the same family. However blank cells should be skipped.

[TABLE="class: grid, width: 500"]
<colgroup><col style="width:54pt" span="3" width="72"> </colgroup><tbody>[TR]
[TD="width: 72"]Col A
[/TD]
[TD="width: 72"]Col B[/TD]
[TD="width: 72"]Col C[/TD]
[/TR]
[TR]
[TD="align: right"]5555
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]5555
[/TD]
[TD="align: right"]321
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD="align: right"]5555
[/TD]
[TD="align: right"]325[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]5555
[/TD]
[TD="align: right"]549[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: right"]8888[/TD]
[TD][/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD="align: right"]8888[/TD]
[TD="align: right"]649[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD="align: right"]8888[/TD]
[TD="align: right"]821
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD="align: right"]2222[/TD]
[TD][/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD="align: right"]2222[/TD]
[TD="align: right"]183[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]2222[/TD]
[TD="align: right"]243[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD="align: right"]2222[/TD]
[TD="align: right"]764[/TD]
[TD="align: right"]3
[/TD]
[/TR]
</tbody>[/TABLE]

I have tried this formula IF(A2=A1,C1+1) But the problem is that it doesn't skip blank cells, so it ends up numbering blank cells or generating "FALSE".
I have also tried IF(AND(B1>0,A2=A1),C1+1,"") but neither of the formula does what I would like to.
Can anybody help me with this problem.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
This requires your data starting in row 2, ie the first 5555 in A2, and the data is sorted like in the example. In C2 place this:

=IF(A2=A1,(B2<>"")+IF(ISNUMBER(C1),C1,0),"")
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top