Fill serie with exception if same number

jellevansoelen

New Member
Joined
Mar 1, 2021
Messages
29
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi Excel experts,

Can someone help me with a difficult Excel question?
I think it's also difficult to explain the issue, hopefully you understand me.

I have a lot of rows with numbers, but I must number this in a serie in another cell.
But I want if the number is the same, it must be the same number in a serie.
I will let you see in a example:

Book1
EF
51986-23
61986-24
71986-25
81986-27
91986-28
101986-30
111986-31
121986-31
131986-32
141986-33
151986-33
161986-34
171986-35
181986-37
191986-38a
201986-38
211986-39
221986-40
231986-41
241986-42
251986-43
261986-44
271986-45
281986-46
291986-46
301986-46
311986-46
321986-46
331986-47
Sheet1


If you can see are some numbers the same.
When i'm go numbering in series, i get the following:

Book1
EF
511986-23
621986-24
731986-25
841986-27
951986-28
1061986-30
1171986-31
1281986-31
1391986-32
14101986-33
15111986-33
16121986-34
17131986-35
18141986-37
19151986-38a
20161986-38
21171986-39
22181986-40
23191986-41
24201986-42
25211986-43
26221986-44
27231986-45
28241986-46
29251986-46
30261986-46
31271986-46
32281986-46
33291986-47
Sheet1


But i want that the same numbers (1986-31, 1986-33 and 1986-46) have the same number.
So i want to get this:

Book1
EF
511986-23
621986-24
731986-25
841986-27
951986-28
1061986-30
1171986-31
1271986-31
1381986-32
1491986-33
1591986-33
16101986-34
17111986-35
18121986-37
19131986-38a
20141986-38
21151986-39
22161986-40
23171986-41
24181986-42
25191986-43
26201986-44
27211986-45
28221986-46
29221986-46
30221986-46
31221986-46
32221986-46
33231986-47
Sheet1


Is there somebody to help me with a formule or a script?
I hope it so much :).

Tnx
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
How about
Excel Formula:
=SUMPRODUCT(1/(COUNTIF(F$5:F5,F$5:F5)))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,743
Messages
6,180,692
Members
452,994
Latest member
Janick

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