Entering Worksheet Data
Often, entering worksheet data requires nothing more than moving the cell pointer to the correct
and typing the data. The various kinds of data behave differently when entered, however, so you should understand how Excel accepts assorted data.
Excel can work with the following kinds of data:
” Text values such as
” Numeric values such as 34, “291, 545.67874, and 0
” Expressions that compute numeric results (some formulas work with text values as well)
” Date and time values
Excel works well with data from other Office products. Additionally, you can
(transfer) data from other non-Microsoft products, such as Lotus 1-2-3.
If you want to put text (such as a title or a
) in a cell, just place your cursor in the cell and type the text. Excel left-justifies the text in the cell. As you type, the text appears both in the cell and in the Formula bar. Remember that the
to the left of the Formula bar displays the name of the cell into which you are entering data. When you press Enter, Excel moves the cell pointer down one row.
Press Tab to move the cell pointer to the right or the arrow keys to move the cell pointer in any direction after you enter data.
If you press Esc at any point during your text entry, Excel erases the text you typed in the cell and
the original cell contents.
If your text is wider than the cell, Excel does one of two things depending on the contents of the adjacent cell to the right:
If the adjacent cell is empty, Excel displays the entire contents of the wide cell.
If the adjacent cell contains data, Excel truncates (cuts off) the wide cell to show only as much text as fits in the cell's width. Excel does not remove the unseen data from the cell; however, the adjacent cell, if that cell contains data, always displays instead.
Figure 43.5 shows two long
(label is another name for text data) in cells C5 and C10. The same label, which is longer than standard cell width, appears in both
. Because no data resides in D5, Excel displays all the contents of C5. The data in D10, however, overwrites the tail end of C10. C10 still contains the complete label, but only part of it is visible.
Figure 43.5. Excel may or may not display all of a cell's contents.
You can increase and shrink the width and height of
and rows by dragging the edge of the column name or row number. If you drag the right edge of column D to the right, for example, the entire column D (all rows in the column) widens.
Some text data, such as price codes, telephone numbers, and ZIP codes, fool Excel. As you see in the
section, Excel treats numeric data differently from text data when you type the data into cells. If you want Excel to treat a number (such as a ZIP code) as a text entry (calculations are not performed on the cell), precede the contents with a single apostrophe ('). For example, to type the ZIP code 74137, type
; the apostrophe lets Excel know to format the value as text.
Excel accepts numeric values of all kinds. You can type positive numbers, negative numbers, numbers with decimal points, zero-leading numbers, numbers with dollar signs, percent signs, and even
(a shortcut for writing extremely large and small numbers). Later in the section "Entering Values," you will learn more about how to put numeric values in worksheet cells.
If you type a number but see something like
appear in the cell, Excel converted your number to scientific notation to let you know that the cell is not wide enough to display the entire number in its regular form. Excel does not extend long numbers into adjacent cells.
Excel right-justifies numbers inside cells. You can change the format for a single cell or for the entire worksheet.
Entering Dates and Times
Excel supports almost every national and international date and time format. Excel uses its AutoFormat feature to convert any date or time value that you type to a special internal number that represents the number of days since midnight, January 1, 1900. Excel automatically displays all dates the
enters with four-digit year values by showing the full year. Although this
internal representation might not make sense now, you use these values a lot to compute time between two or more dates. You can easily determine how many days an account is past due, for example.
Excel uses a 24-hour clock to represent time values unless you specify a.m. or p.m. To convert p.m. times to 24-hour times, add 12 to all time values after 12:59 p.m. Thus, 7:54 p.m. is 19:54 on a 24-
You can type any of the following date and time values to represent 6:15 p.m., July 4, 1976, or a combination of both 6:15 p.m. and July 4, 1976:
July 4, 1976
4-Jul-76 6:15 p.m.
If you enter any of these date and time values, Excel converts them to a
format (such as
). You can enter a date, a time value, or both. As with most Office formats, you can change this default format with the Format menu. The shorter format often helps worksheet columns align better.