Sub topic 2
Entering Dates and Times
Assume you can open a workbook and understand rows, columns, and cells. This chapter focuses on entering dates and times, checking what Excel stores, and changing entries safely.
Entering dates and times
Type a date using a format Excel recognizes, such as 27-Nov-2026 or 11/27/2026. Excel may display the date according to your regional settings. A date such as 03/04/2026 can mean March 4 or April 3, so use an unambiguous format when sharing workbooks.
For the current date, press Ctrl+;. For the current time, press Ctrl+Shift+;. These shortcuts enter fixed values. They do not update later.
Type a time such as 14:30 or 2:30 PM. To enter a fraction as a time rather than a date, include zero hours:
Type 0 1/2 in a cell and press EnterExcel interprets this as half a day and displays 12:00 PM or another time format.
What is stored versus what is shown
Excel stores dates as serial numbers. In the default date system, whole numbers represent days, and the decimal portion represents part of a day. For example, a time is stored as a fraction of 24 hours.
A cell might store a date-time value such as 46353.5 but display 27-Nov-2026 12:00 PM. The formula bar usually reveals the underlying value or a formatted version of it. Number Format changes appearance without changing the stored value.
Editing a cell without retyping it
Select the cell and press F2 to edit inside it. You can also double-click the cell or select it and edit in the formula bar. Press Enter to commit or Esc to cancel. Use the formula bar when the cell is too narrow or contains a long entry.
Entering formulas with an equals sign
A formula begins with =. For example, if A2 contains a date and B2 contains a number of days:
=A2+B2Excel calculates a new date. A formula can also calculate time:
=A2+TIME(2,30,0)This adds two hours and thirty minutes to the value in A2.
Clearing contents, formats, and everything
Select a cell or range, then use Home > Clear:
- Clear Contents removes values and formulas but keeps formatting.
- Clear Formats removes formatting but keeps values.
- Clear All removes both.
Use Undo (Ctrl+Z) if you clear the wrong range.
Exercise
A cell shows 12:00 PM after entering 0 1/2. What does Excel store?
Show answer
It stores 0.5, which represents half of one day.