0% found this document useful (0 votes)
67 views9 pages

M3 - T6 - Date and Time Functions - Final

This document provides an overview of date and time functions in Excel. It discusses how dates and times are stored as serial numbers, and how to format cells as dates or times. It also explains common date and time functions like DATE, YEAR, MONTH, DAY, TODAY, NOW, and how to calculate the difference between dates or times. Examples are provided to demonstrate calculating dates using functions like DATE, TODAY, and EDATE.

Uploaded by

Navneet Nanda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views9 pages

M3 - T6 - Date and Time Functions - Final

This document provides an overview of date and time functions in Excel. It discusses how dates and times are stored as serial numbers, and how to format cells as dates or times. It also explains common date and time functions like DATE, YEAR, MONTH, DAY, TODAY, NOW, and how to calculate the difference between dates or times. Examples are provided to demonstrate calculating dates using functions like DATE, TODAY, and EDATE.

Uploaded by

Navneet Nanda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Date/Time

Functions – Excel 2016



Date/Time Functions
Excel works not only with numbers and text string, but with dates and times too! This guide will cover
date and time functions.
1. Formatting Dates and Times
2. Using Date and Time Functions
3. Calculating the difference between two dates
4. Calculating the difference between two times


How are dates stored in Excel?
Dates work differently from numbers in Excel. Days are limited from 1 to 31 and months are limited to
12. So how does Excel store dates?
Dates are stored as serial numbers, counted sequentially beginning from a reference date of 1st January
1900, which is represented by serial number 1.

Date Formatting
Dates need to be stored in the proper date format in terms of their respective serial numbers, instead
of text format.

Just by looking at a cell we can find out if it is in date form. Cell values in date format are aligned to the
right of a cell.



Excel can display and recognize multiple date formats. Here are some examples:

1/1/2018
1-Jan-18
January 1, 2018
Sunday, January 01, 2018

Page 1 of 9

Date/Time Functions – Excel 2016



To apply date format to a cell, click on the cell number format dropdown box (arrow to the right of
‘General’) and then select either ‘Short Date’ or ‘Long Date’ for pre-set date formats.



Alternatively, select ‘More Number Formats’. In the popup menu, click on the category ‘Date’ and
select the type of date format we want.

We can also select the location we are living in to use the location-specific date format for our
worksheet.





Page 2 of 9

Date/Time Functions – Excel 2016



If you want to create your own date format, click on Custom and type in the date format you want, for
example “d-mmm-yyyy”.




Time Formatting
Similarly, Excel stores time as a numerical value. Again, to format a cell in time format, select the cell
and then select ‘Time’ from the number format dropdown. To choose a different time format, click on
‘More Number Formats’ and select a format from the right pane.
















Notice that the first time format has an asterisk sign (*) next to it. This highlights that the cell value will
change according to the default time settings on your computer.




Page 3 of 9

Date/Time Functions – Excel 2016



To customise your own time format, click on ‘Custom’.



Now that we know how to apply date and time format settings correctly, we can use functions to
perform calculations involving such values.

Let’s now look at the following ‘Date and Time Functions’:
• DATE, YEAR, MONTH, DAY
• TODAY
• NOW
• Difference between two times
• Difference between two dates
• EOMONTH
• EDATE
• NETWORK DATES

Page 4 of 9

Date/Time Functions – Excel 2016



Basic Date and Time Functions

DATE, YEAR, MONTH, DAY
A date is made up of a day, month and year. We can use the oblique symbol (/) or dash symbol (-) to
write a date in this format. The default date format in Excel is “dd/mm/yyyy”.

DATE Function
When we have three separate numbers indicating a day, month, and year, we can use the DATE
function to help us combine them quickly into date format.

The syntax of this function is “=DATE(year,month,day)”

In the example below, if we enter the “= DATE(C2,B2,A2)” into cell D2, we will obtain the combined
numbers in Excel’s default date format.



Result:




YEAR, MONTH, DATE Functions
To obtain just the year, month or day from a cell in date format, we can use the YEAR, MONTH & DAY
functions respectively.

Result:




Result:



Result:



Page 5 of 9

Date/Time Functions – Excel 2016




TODAY function
To get today's date, click on a cell and type in the function “=TODAY()”.
The keyboard shortcut is: “Ctrl + Semicolon (;)”



NOW function
To get today's date and time, click on a cell and type in the function =NOW().
The keyboard shortcut is: “Ctrl + Shift + Semicolon (;)”




Note: The functions TODAY and NOW will update automatically to the current
date / time, just like a clock. But using the keyboard shortcuts Ctrl+Semicolon or
Ctrl+Shift+Semicolon will result in a static date or time that will not auto-update.
This can be useful for recording down the working hours you works in a day,

flight timings, or tracking progress made on your study schedule!

Page 6 of 9

Date/Time Functions – Excel 2016

TIME, HOUR, MINUTE, SECOND


Time is made up of hours, minutes, and seconds, separated by a colon (:).
The default time format in Excel is “HH:MM AM/PM”.

TIME Function
When we have three separate numbers indicating the hour, minutes and seconds we can use the TIME
function to help us combine them quickly into the default time format.

The syntax of this function is “=TIME(hour,minute,second)”

In the example below, if we enter the “= TIME(A2,B2,C2)” into cell D2, we will obtain the combined
numbers in Excel’s default time format.



Result:




HOUR, MINUTE, SECOND Functions
To obtain the hour, minute, or second from a cell in time format, we can use the HOUR, MINUTE &
SECOND functions respectively.

Result:



Result:




Result:



Page 7 of 9

Date/Time Functions – Excel 2016



Difference between two dates
Since dates and times are stored as numbers, we can add or subtract them to calculate the difference
between them.

Example
If Food2Go’s last social media promotional post was five days ago, what date was that?

We can use the TODAY function to calculate this: “ = TODAY () – 5 ”


Result:


Example
Ishan’s laptop is 2 years, 3 months and 4 days old on 06/06/2018. When did Ishan purchase his laptop?
Let’s use the DATE function to find out!

1. In Cell A1, type in the date “06/06/2018”.
2. In another cell, type in the formula: “ = DATE (YEAR (A1) – 2 , MONTH (A1) – 3 , DAY (A1) – 4 )”
3. Press Enter.

Result:




Difference between two times


Now learn how to calculate the difference between two times using functions.

It is 18:00 now. Ishan has just finished reviewing last month’s financial figures.
This took him 3 hours 18 minutes and 20 seconds. At what time did he start reviewing these files?
We can use the TIME function to calculate what the starting time is.

1. In cell A1 type “18:00”.


2. In another cell, type in the formula “ = TIME (HOUR (A1) – 3 , MINUTE (A1) – 18 , SECOND (A1) – 20)”
3. Press Enter.





Result:


Page 8 of 9

Date/Time Functions – Excel 2016




EOMONTH
The EOMONTH function returns the last day of a month that is a specified number of months before or
after a start date (start_date).
This function can be used to calculate maturity dates.
The EOMONTH function in the example below will tell us the last day of the month that is 1 month
after 6 July 2018 (start date).

Result:




EDATE
The EDATE function adds or subtracts a specified number of months to a given date to compute a new
date.
The EDATE function in the example below will tell us the date exactly 1 month after 6 July 2018 (start
date).

Result:



NETWORKDAYS
The NETWORKDAYS function computes the total number of whole working days between two dates.
*Weekends are automatically excluded, and you have the option of specifying holiday dates to be
excluded also.

The NETWORKDAYS function in the example below will tell us how many working days there are
between 6 July 2018 and 6 July 2019.






Result:


Page 9 of 9

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy