• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Creating Custom Autofill series?

bluepenguin3

New Member
Hi all,

I have a problem that seems simplistic, but I can't solve it. Maybe I'm using the wrong terms to search. I want to create my own custom way to fill a series. My data looks something like this:

BP0001
BP0001
BP0001
BP0002
BP0002
BP0002
BP0003
BP0003
BP0003

When I drag to autofill, I want to continue this pattern indefinitely. So, the next 3 entries should be BP0004 and then the next three after that BP0005, and onward.

I don't want the series to just continue to repeat the 1, 2, and 3 over and over again, but that's what happens if I select that section and drag to "Fill series".

Is there anyway to get the series to repeat the data 3 times, before moving on to the next sequential number?

Thanks for your time!
 
Hi ,

Another formula :

="BP" & TEXT((ROW(A1)+1)/3, "0000")

Enter this in the first cell , where ever that is , and copy down.

Narayan

upload_2017-6-4_23-0-3.png

Sequential number increment fill down.

Maybe the roundup problem, as per testing sheet show, row 1 is the increment number, formula put in row 2 A2 and copy across down.

Narayan's formula only worked in the increment of 3 and 4, the other numbers appeared failure.

Here's the testing sheet attached for reference.

Regards
Bosco
 

Attachments

Thanks everyone!

Somendra, your formula works perfectly for me. Thank you so much. I'm a little relieved that there wasn't just some obvious button that I wasn't clicking to make this work.
 
View attachment 42267

Sequential number increment fill down.

Maybe the roundup problem, as per testing sheet show, row 1 is the increment number, formula put in row 2 A2 and copy across down.

Narayan's formula only worked in the increment of 3 and 4, the other numbers appeared failure.

Here's the testing sheet attached for reference.

Regards
Bosco
Hi ,

The TEXT function does round off internally because the format string does not have any decimal places.

The following will work for 5 and 6 :

=TEXT((ROW(A1) + 2)/6, "0000")

OP has asked for 3 , and what was posted works for 3.

Narayan
 
Back
Top