Excel auto fill by series based on another column

ftater23

New Member
Joined
Jun 26, 2012
Messages
12
I want my seq_no column (B) to auto fill by 10s but I need it restart the series when the number in column A changes.

[TABLE="width: 128"]
<tbody>[TR]
[TD]item_no[/TD]
[TD]seq_no[/TD]
[/TR]
[TR]
[TD]710000[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]710000[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]710001[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]710001[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]710001[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]710001[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]710002[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]710002[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]710002[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]710003[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]710003[/TD]
[TD]20[/TD]
[/TR]
</tbody><colgroup><col span="2"></colgroup>[/TABLE]
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I want my seq_no column (B) to auto fill by 10s but I need it restart the series when the number in column A changes.

[TABLE="width: 128"]
<TBODY>[TR]
[TD]item_no
[/TD]
[TD]seq_no
[/TD]
[/TR]
[TR]
[TD]710000
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]710000
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]710001
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]710001
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]710001
[/TD]
[TD]30
[/TD]
[/TR]
[TR]
[TD]710001
[/TD]
[TD]40
[/TD]
[/TR]
[TR]
[TD]710002
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]710002
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]710002
[/TD]
[TD]30
[/TD]
[/TR]
[TR]
[TD]710003
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]710003
[/TD]
[TD]20
[/TD]
[/TR]
</TBODY>[/TABLE]
Try this...

Sheet1

*AB

<COLGROUP><COL style="FONT-WEIGHT: bold; WIDTH: 30px"><COL style="WIDTH: 72px"><COL style="WIDTH: 72px"></COLGROUP><TBODY>
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: center"]710000[/TD]
[TD="align: center"]10[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: center"]710000[/TD]
[TD="align: center"]20[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: center"]710001[/TD]
[TD="align: center"]10[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: center"]710001[/TD]
[TD="align: center"]20[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: center"]710001[/TD]
[TD="align: center"]30[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: center"]710001[/TD]
[TD="align: center"]40[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: center"]710002[/TD]
[TD="align: center"]10[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="align: center"]710002[/TD]
[TD="align: center"]20[/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: center"]710002[/TD]
[TD="align: center"]30[/TD]

[TD="bgcolor: #cacaca, align: center"]11[/TD]
[TD="align: center"]710003[/TD]
[TD="align: center"]10[/TD]

[TD="bgcolor: #cacaca, align: center"]12[/TD]
[TD="align: center"]710003[/TD]
[TD="align: center"]20[/TD]

</TBODY>



This formula entered in B2 and copied down:

=COUNTIF(A$2:A2,A2)*10
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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