AutoFilling Numbers with a Trailing Period

Written by Allen Wyatt (last updated August 22, 2020)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


Iana wants to AutoFill a column of sequential numbers as "1.", "2.", etc., through "150.". The AutoFill will only work without the trailing period, but she wants the period there.

As Iana has discovered, AutoFill doesn't do a great job on figuring out how to "increment" text. It does OK if you are working with well-established sequences, such as the alphabet or days of the week, but it is downright stupid when it comes to most other text values. And, unfortunately, entering a number (1) followed by a period places a text string (1.) in the cell. Bingo! AutoFill chokes.

There are at least three potential solutions. The first is to stick to numbers (which AutoFill can work with) and apply a custom format to the cells in order to add the period. Follow these steps:

  1. Use AutoFill to create your sequence of 150 cells, numbered 1 through 150.
  2. Select the cells.
  3. Select the Home tab of the ribbon.
  4. Click the small icon at the bottom-right of the Number group. Excel displays the Format Cells dialog box.
  5. If the Number tab is not displayed, select it.
  6. In the Category list, choose Custom. The dialog box changes so you can enter a custom format. (See Figure 1.)
  7. Figure 1. The Number tab of the Format Cells dialog box.

  8. In the Type box enter the following: 0"." (the digit 0 followed by a period enclosed within quote marks).
  9. Click OK.

Your numbers should now all appear just fine with a trailing period. And, best of all, they are still numbers so you could do math with them, if necessary.

A couple of ExcelTips subscribers suggested a second method to get sequential numbers with a trailing period. This method uses a formula and results in numbers without applying a custom format to the cells. Follow these steps:

  1. In cell A1 enter the following formula:
  2.        =Row(A1)&"."
    
  3. Use AutoFill to create your sequence of 150 cells, numbered 1 through 150 which are automatically followed by periods.

Another approach is to go ahead and expect that your numbers will end up as text. In this case, you should make sure that columns A and B are empty and then follow these steps:

  1. In column A, use AutoFill to create your sequence of 150 cells, numbered 1 through 150.
  2. In cell B1 (or whatever cell is to the right of the first cell in the column A sequence) enter the following formula:
  3.        =A1 & "."
    
  4. With cell B1 still selected, double-click the fill handle at the bottom-right corner of the cell. You should now have a range of cells in column B that have your 1 through 150 numbers with the trailing period.
  5. Make sure the range of cells are selected in column B. (For instance, select the range B1:B150 if those contain your numbers followed by periods.)
  6. Press Ctrl+C to copy the range to the Clipboard.
  7. Display the Home tab of the ribbon.
  8. Click the down-arrow under the Paste tool and select to paste Values.
  9. Delete column A.

Your numbers should now all appear just fine, with the trailing period, in column A. The difference between this approach and the earlier approach is that in this case the numbers aren't really numbers in the eyes of Excel—they are text values.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13294) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Rounding Time

Need to round the time in a cell to a certain value? There are a couple of ways you can do this with a formula.

Discover More

Comma-Delimited Differences for PC and Mac

When you choose to save worksheet data in CSV format, Excel gives you three choices for file formats. Those choices are ...

Discover More

Selective Formatting using Find and Replace

The Find and Replace tool in Word allows you to search for formatting and alter it in your replacement text. What it ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Deleting Everything Up to a Character Sequence

Sometimes you have too much information in a cell and you need to "pare down" what is there to get to the info you really ...

Discover More

Separating Text by Color

Excel allows you to use multiple colors to format the text in a cell. If you want to later separate that text to ...

Discover More

Can't Enter Years in a Cell

Sometimes getting the right thing to show up in a cell can be a bit tricky when working with dates. If you enter a year ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 + 7?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.