Autofill sequentially from the right-hand number in a cell

New Contributor

Using Excel 2011 for Mac.


I have a column that needs to be renamed in sequential order. The content are the names of photographs. The text in a cell goes as follows…


So a single cell looks like this…

1234 ANTONIO 001

I need keep the PROJECTNUMBER the same and have the number on the right-hand side, PHOTONUMBER, go sequentially from 001 to 1049.

When I drag the cell down from the right-hand corner, the PROJECTNUMBER goes sequentially rather than the PHOTONUMBER.

How can I get the PHOTONUMBER to go sequentially?



6 Replies

I don't know about Excel on a Mac but this is how I would do this on a PC ...

in an adjacent column type '001 in the row for the first photo number then copy this down with the fill option to 1049, then position the cursor in the column you want to fill and click on the Fill button in the ribbon and select flash fill.  Then you can remove the adjacent column detail.


Thank you for your reply. My Fill button doesn't have the flash fill option.


I tried creating a column starting at 001 and ending on 1049 and then merging the cells, but I get a message saying "The selection contains multiple data values. Merging into one cell will keep the upper-left most data only."


If I click OK it removes rather than append the values from the right column into the left column.


You just need a helper column and my formula :)


lets say your data is in Column A and you put this formula =A2&" "&TEXT(ROWS($A$2:A2),"000") in B2 and Drag down. you will get the sequential numbering as you described.


please see attached workbook example. 





Thank you for your help. I was able to complete the task using the clues Jamil Mohammad and Stephen Zabiela gave me.


First I put the PROJECTNUMBER PROJECTNAME in the first column, A. I also included a space so I didn't need it in the formula.


Then I put the PHOTONUMBER in the second column, B, and dragged the numbers down to 1049.


Then I alt/option dragged column A down to 1049.


The function I used in column C was CONCATENATE.


=CONCATENATE(A1, "00", B1)


On the way down the column I changed the formula to have a single zero for the double digits and no zero for the triple digits.


=CONCATENATE(A10, "0", B10)




I wouldn't have figured this out without the clues you both gave me. Thank you.



You are welcome.


Thanks for the feedback.

Thanks Lady Audio. It is a shame the flash fill did not work for you as it involved no formulae at all. If you wanted to avoid the formula change where you hit photo number 1000 and the need for the leading 0 is no longer, you could do it this way. Type ' 000 in the first row in column B then drag and fill down ... if Mac version is the same as Windows then this will give you a list of text values from 0001 to 1049 preceded with a space so you can then just concatenate column A and B values. [Jamil's formula achieved this using the TEXT function].