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

Setting Superscript Height in the Equation Editor

The Equation Editor makes it easy to create and add equations to your documents. Here's how to adjust where the ...

Discover More

Keep Your Headings in View

Headings on a table are very important when it comes to understanding what is in the table. This tip explains an easy way ...

Discover More

Fonts Missing in Word

What are you to do if you find that you have no fonts available in Word, but they are available in other programs? There ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (ribbon)

Getting Rid of Spaces in Cells

Importing data into Excel that was generated in other programs can have some interesting side effects. For instance, you ...

Discover More

Getting Rid of 8-Bit ASCII Characters

When working with data created outside of Excel, you may need to check that data to make sure it contains no unwanted ...

Discover More

Error Generated when Trying to Copy a Worksheet

How successful you are in copying information in Excel depends on lots of issues. This tip examines how those issues can ...

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 4 + 9?

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.