Академический Документы
Профессиональный Документы
Культура Документы
TODAY function
1. Press Ctrl+N to create a new workbook.
2. Enter =TODAY( ) in cell A1.
Excel displays the current date in the format of dd/mm/yy in cell A1.
NOW function
By defauly, NOW function displays both date and time.
1. Press Ctrl+N to create a new workbook.
2. Enter =NOW( ) in cell A2.
Excel displays the current date and time in the format of 12/Jan/19 12:05 in cell A2.
The NOW function inserts a number corresponding to your computer’s system clock.
This number has two parts:
1. The integer part that contains the current date serial number.
2. The decimal part that contains the time information.
To Format the Date:
1. Make Cell A2 active.
2. Press Ctrl+1 or Use the FormatCells command from the menu.
Excel displays the Format Cells dialog box.
3. Click ‘Date’ in the Category list box to the see the list of date formats.
1|Page
Using Date and Time Unit III
In the Format Cells dialog box, Excel displaying the various date formats.
4. Click the corresponding format code in ‘Type’ box to change the date style for the
selected cell.
5. Then Click the OK button (or) Press Enter.
Excel displays the date in specified format as 12-Jan-19 in cell A2.
2|Page
Using Date and Time Unit III
3. Format the text entered in cell where you want to display it in bold letters.
3|Page
Using Date and Time Unit III
=C8-B8
=D8*B4
=D9*B4
=C9-B9
Advantage of Using Dates
1. You can reformat the date to display it in a new format.
2. You can use several date formats.
3. You can also create your own built-In date formats.
4. You can extract the Year, Month, Day from the date and use them in calculations.
5. You can subtract one date from another to calculate the number of days between the two
dates.
6. You can compare dates and take some decision based on the result.
4|Page
Using Date and Time Unit III
The ‘$’ sign before the row and column number indicates that the cell address B3 is
absolute.
This cell address does not change when you copy or move a formula containing it.
Mixed Addressing
Mixed cell addressing is a slight variation of the absolute cell addressing.
In this, One part of the cell reference is absolute and the other is relative.
For example,
1. Type = B4 in cell B4. (Do not press Enter)
2. Press F4 function key, Now the cell address is changed to $B$4.
$B$4 – Both Column B and Row 4 are absolute.
3. Press F4 function key again, Now the cell address is changed to B$4.
B$4 - Column B is relative and Row 4 is absolute.
4. Press F4 function key again, Now the cell address is changed to $B4.
$B4- Column B is absolute and Row 4 is relative.
5. Press F4 function key again, Now the cell address is changed to B4.
B4-Both Column B and Row 4 are relative.
Additional Date Funtions
You can extract the Year, Month, Day from the date.
For example:
1. Press Ctrl+N to open a new workbook.
2. Enter =DATE(19,01,12) in cell A1.
Excel displays 12/01/19 in cell A1.
To change the date format, Press Ctrl+1 or Go to Format Cells command to format the date.
For manipulation of the date, Excel provides the following functions.
DAY – Calculates the day of the month from the date.
MONTH – Calculates the month number from the date.
YEAR - Calculates the year number from the date.
5|Page
Using Date and Time Unit III
Date in Cell A1
=DAY(A1)
=MONTH(A1)
=YEAR(A1)
To change the date format, Press Ctrl+1 or Go to Format Cells command to format the date.
For manipulation of the date, Excel provides the following functions.
HOUR – Calculates the hour from the time.
MINUTE – Calculates the minute from the time.
SECOND - Calculates the second from the date.
6|Page
Using Date and Time Unit III
Time in Cell A1
=HOUR(A
1)
=MINUTE(A1)
=SECOND(A1)
7|Page