03-27-2018 08:29 PM
03-27-2018 08:29 PM
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…
PROJECTNUMBER PROJECTNAME PHOTONUMBER
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?
03-28-2018 05:52 AM
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.
03-28-2018 03:27 PM
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.
03-28-2018 03:52 PM
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.
03-31-2018 02:43 PM
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.
04-01-2018 06:17 AM