Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Filling a Cell.

Filling a Cell

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


2

There may be times when you need to fill a cell with a particular character or group of characters. For instance, you may need to fill a cell with the characters " Enter MPG " (with the spaces) for the entire width of the cell. Excel allows you to do this very easily. It repeats the characters over and over again, regardless of the cell width. To utilize this feature, follow these steps:

  1. Type the characters that you want repeated in the cell.
  2. Display the Home tab of the ribbon.
  3. In the lower-right corner of the Alignment group, click the small icon. Excel displays the Alignment tab of the Format Cells dialog box. (See Figure 1.)
  4. Figure 1. The Alignment tab of the Format Cells dialog box.

  5. Use the Horizontal drop-down list to select the Fill option.
  6. Click on OK.

Excel repeats whatever you typed in the cell, until the entire cell is filled. For instance, if you typed two characters, then those two characters are repeated over the width of the cell.

It might be helpful to provide a bit of history here. This "filling a cell" capability has its roots in the very early days of Excel. In those early days when most things were text-based, this type of capability was used to fill a cell with a dash (-) or an equal sign(=). In that way, the cell could act as a "border" between groups of numbers or between headings and the numbers under those headings.

With the advent of actual formatting, which has now been available in Excel for years and years (and years), the usefulness of filling a cell in this way is obviously lessened.

I think it still has some usability, however, if you want to fill a cell with a "directive" to the user as to what should be entered in the cell. That is the reason I provided, at the beginning of this tip, an example that filles the cell with the text " Enter MPG " (with the spaces). This could be a directive to the user to enter a "miles per gallon" figure. That way, no matter how wide the user made the column, it would always be filled with that text.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6254) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Filling a Cell.

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

Merging Only a Date from Access

When you are merging data from an Access database, you may get more information than you want, especially when it comes ...

Discover More

Summing Only the Largest Portion of a Range

Given a range of cells, you may at some time want to calculate the sum of only the largest values in that range. Here is ...

Discover More

Resetting Paragraph Formatting

Tired of the formatting used in a paragraph? One way to 'start over' is to make sure that the formatting is reset to its ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Enforcing a Desired Font

If your workbooks are shared and used by a number of different people, you may end up with some formatting in those ...

Discover More

Drawing Borders

Adding borders around cells is a common formatting task. You can make the task more intuitive by actually drawing the ...

Discover More

Converting From Numbers to Text

If you have a range of numeric values in your worksheet, you may want to change them from numbers to text values. Here's ...

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 seven more than 1?

2021-02-13 19:45:07

John Mann

One major snag with this, using it as a prompt for what should be entered. The value entered is also repeated across the cell.

Using Allen's example, I entered "Enter MPG " (without the quotes) into a cell formated as number4 with 1 decimal place, used the fill alignment, and then stretched the cell with to give 3 repetitions. This resulted in the cell showing "Enter MPG Enter MPG Enter MPG ".

When I then entered a likely value, 25.7, what showed in the cell was 25.725.725.725.725.725.725.725.7 - 8 repetitions of the the value entered. If I tried to copy this, the actual value copied was the original.


2020-11-24 14:29:05

She-Ra

The simplest of things makes me more productive. Thank you for this!


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.