# Need HELP with auto fill series when the value changes in another column. PLEASE HELP!!

#### jazzy7010

##### New Member

I am trying to use the auto fill series but I need the series to start over every time the value change in another column.
If i use the auto fill series, it will copy 1,2,3,4,5 and so forth til the end of the column. In this case, i need the auto fill or some other function that will restart once it encounters a different value under the ID column. I've started below to show an example.

ID No
0.1114 1
0.1114 2
0.1114 3
0.112 1
0.112 2
0.112 3
0.112 4
0.112 5
0.112 6
0.1121
0.1121
0.1121
0.1121
0.1121
0.1121
0.1122
0.1122
0.1122
0.1122
0.1122
0.1122
0.1122
0.113
0.113
0.113
0.113
0.113

### Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

#### bruderbell

##### Active Member
If your numbers start in A2, put this in B2:
=COUNTIF(\$A\$2:A2,A2)

Drag that baby down.

Last edited:

#### bruderbell

##### Active Member
If your values aren't sorted as you show in the sample dataset, then the formula will still do something...but maybe not what you hoped. For example, if I add another 0.113 at the end of the dataset (out of the sorting), the formula returns 6 because that is the sixth time the number 0.113 showed up in the list.

#### jazzy7010

##### New Member
You are the bomb!! This is exactly what i need and the results are PERFECT!! Thank YOU!!!

If your numbers start in A2, put this in B2:
=COUNTIF(\$A\$2:A2,A2)

Drag that baby down.

#### bruderbell

##### Active Member
You're welcome

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,167,943
Messages
5,856,432
Members
431,813
Latest member
seconduser

### 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?

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