Consecutive Numbers

ddecheva

New Member
Joined
Aug 2, 2016
Messages
8
Dear all,

I am struggling in finding a formula that can fulfill the following criteria

If we have a row that is like
1
1
2
2
2
3
1
1
2
2
1
2
3


I want to make it like
1
1
2
2
2
3
4
4

5
5
6
7
8


Practically after the first time of 1 any other 1 to be consecutive and the numbers after.

How do you think I can make it with a formula? Is there a way?

Thank you for your input in advance!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Its needed to convert the header to zero or the first sum would fail.


thanks i never seen that before but have encountered the problem lol .. now i have a solution

edit

FormR
user-online.png
Thanks
 
Last edited:
Upvote 0
Additionally,

After I do the consecutive numbers I need to create random "Fake" 14 to 18 digit numbers, which correspond to those numbers. I will explain better with an example

1 1234567891011
1 1234567891011
2 1234567891012
2 1234567891012
2 1234567891012

3
1234567891013
4 1234567891014
5 1234567891015
5 1234567891015
6 1234567891016
7 1234567891017
8 1234567891018

The ending of the 14 digit number, however, does not need to end like the number to which correspond. The only rule is for all 1s,2s,3s and etc. to be the same.

Do you think this is feasible?


I forgot to mention that the 14 to 18 digits number should be unique. It should not repeat at all.
 
Upvote 0
Im lost to what you are asking for here. You say unique but your examples aren't unique.
 
Upvote 0
They are unique for 1,1,2,2 and etc.

But if I have another batch of 1,1,2,2 then I need new unique 14 to 18 numbers for them
 
Upvote 0

Forum statistics

Threads
1,216,111
Messages
6,128,898
Members
449,477
Latest member
panjongshing

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