Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. 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: Editing Individual Cells.

Editing Individual Cells

Written by Allen Wyatt (last updated July 23, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


5

If you have been using Excel for any length of time, you probably already know how to enter information into cells and later change that information. If you are new to Excel, however, editing information quickly and efficiently can take a while to master. Fortunately, Excel allows you to quickly and easily edit information you previously entered into a cell.

There are three ways you can edit the information, once you select the cell you want to edit. The first is to just begin typing. If you do this, the information you type replaces the current contents of the cell.

The second way to edit a cell is to use the mouse to point to the contents of the cell on the formula bar. As you move the mouse pointer over the cell information, notice that it changes to an I-beam. Position the I-beam where you want to make an edit and then click the mouse button. The cursor appears at that point within the cell contents, and you can begin editing. Whatever you type is added to the line (you can also drag the I-beam across several characters with the mouse; then what you type replaces the selected text). You can also use the cursor-control keys, as follows:

Key Alone With Ctrl Key
Home Start of line Start of cell
End End of line End of cell
Left Arrow Left one character Left one word
Right Arrow Right one character Right one word
Up Arrow Up one line Up one line
Down Arrow Down one line Down one line

As with many word processors, you can also use the Shift key with the cursor-control keys. This will result in selecting adjacent characters within the cell contents. If you then release the Shift key and type any other information, what you type replaces the selected characters. When you have finished editing the contents of the cell, press Enter.

The final method of editing information is to do it directly within the cell. This is done by either using the mouse to double-click on the cell you want to edit, or by selecting the cell and pressing the F2 key. When you do this, the full contents of the cell appear right in the middle of your worksheet, and you can edit those contents.

When you are editing cells in this manner, all the editing keys function as described earlier. The only difference is where the editing occurs, not how it occurs.

Notice, as well, that if you use cell or range references in a formula that is being edited in the cell, the cells reference in the formula are highlighted in blue in the worksheet. This makes it easy for you to locate references within your worksheet.

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

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

Converting a Table into Text

Word includes a powerful table editor that allows you to create and work with tables easily. At some point, however, you ...

Discover More

ExcelTips: Powerful Lookup Functions (Table of Contents)

Want to access your data indirectly? The answer is to use Excel's lookup function. ExcelTips: Powerful Lookup ...

Discover More

Moving the Insertion Point to the End of a Line

When writing a macro to process the text in a document, you may need to move the insertion point to the end of a line. ...

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)

Splitting Sentences to Cells

If you have a lot of text in your workbook, at some point you might want to split out sentences into individual cells. ...

Discover More

Changing the Default Paste Mode

Don't like the way that Excel pastes when you press CTRL+V? Here are some ways that you can modify the normal paste mode ...

Discover More

Getting Rid of Cells Containing Only Spaces

If you have a worksheet that contains a bunch of cells that contain nothing but spaces, you may be looking for a way to ...

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 two more than 7?

2022-08-10 10:01:42

J. Woolley

@Roger Stone
Re. the Fn key, see https://www.howtogeek.com/235351/how-to-choose-whether-your-function-keys-are-f1-f12-keys-or-special-keys/


2022-07-25 13:47:51

Mike

Another functionality for editing contents of a cell is when you have a formula in a cell, when in edit mode, as described in the article, cell references are highlighted. Those highlighted cells can be moved and/or expanded by clicking and dragging the cell or the cell handle, adjusting the formula references.


2022-07-23 11:03:30

J. Woolley

As explained in the following two Tips, action of the F2 key is governed by Excel's "Allow editing directly in cells" option:
https://excelribbon.tips.net/T006174_Activating_the_Formula_Bar_with_the_Keyboard.html
https://excelribbon.tips.net/T012051_Mouse_Scroll_Wheel_Doesnt_Work_when_Editing_Formulas.html
My Excel Toolbox includes the ToggleEditInCell macro to enable or disable that feature. Here is an abbreviated version of the VBA:

Sub ToggleEditInCell()
    With Application
        .EditDirectlyInCell = (Not .EditDirectlyInCell)
    End With
End Sub

See https://sites.google.com/view/MyExcelToolbox/


2022-07-23 10:37:03

J. Woolley

@Roger Stone
Use of the Fn key is configured in your computer, not in Excel. Read your computer's user manual.


2022-07-23 05:50:04

Roger Stone

Allen, when I click a cell and press F2, it pops up the volume control and reduces it. The F2 and F3 keys in their speaker volume function seem to override the Excel function, even when the Excel sheet is live and I have clicked a cell. I have to press the Fn key +F2 to get into edit mode. Do we know how to reverse this priority?


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.