You are on page 1of 17

Date/Time Functions

Embark on two mini challenges to practice using date and time functions
to help Food2Go calculate some of the milestones it has accomplished as
well as do some analysis on customer order data.
Mini Challenge 1
1. In the "Mini Challenge 1" worksheet tab, solve Tasks 1 to 4 by filling in
the cells highlighted in yellow.
2. Compare your answers with "Solution 1" worksheet tab.
Tip: If you are subtracting dates/times, be sure to subtract them in the
correct order, or your result will be an error message "##########".
Mini Challenge 2: Customer Orders
1. In the "Mini Challenge 2" worksheet tab, complete Tasks 1 and 2 by
filling in the cells highlighted in yellow.
2. Compare your answers with "Solution 2" worksheet tab.
Click on the yellow cells to see the formulas used. Task 1
It has been 1,000 days since Ishan first thought of the idea of startin
What a milestone. To celebrate this brainwave, Ishan is getting a cu
Ishan's Brainwave cake made. We can use a date function to find out when the journe
Today's Date 7/20/2018 began!

When did Ishaan first think of the idea of Food2Go?

Alia's First Day Task 2


Alia has been with Food2Go as an intern for 2 months and 4 days as
6/6/2018 06/06/2018.
Use the DATE function to find out Alia's first day at Food2Go.
(*Hint: You will also need to use the functions YEAR, MONTH and DA

Departure Date & Time Task 3


Ishan was invited to fly to Singapore for a start up conference.
Arrival Date & Time Ishan departs from New Delhi at 23:03 on 5/6/2018 and arrives in S
Flight Duration 04:27 on 6/6/2018 (India time)
Calculate the duration of Ishan's flight.
Use this information to fill in cells B19 and B20. Enter a formula in
calculate the duration of Ishan's flight.
Use this information to fill in cells B19 and B20. Enter a formula in
calculate the duration of Ishan's flight.

Testing start Task 4


Food2Go is piloting a new user interface for their app. They ran som
Testing end today from 01:37 to 07:10.
Total Testing hours
How long did they test the new interface for?
Use the information to fill in cells B26 and B27. Enter a formula in
find out the testing duration.
t of the idea of starting Food2Go!
Ishan is getting a custom-made
out when the journey truly

d2Go?

months and 4 days as of

ay at Food2Go.
EAR, MONTH and DAY.)

up conference.
/2018 and arrives in Singapore at

0. Enter a formula in Cell B21 to


0. Enter a formula in Cell B21 to

eir app. They ran some testing

. Enter a formula in Cell B28 to


Click on the yellow cells to see the formulas used. Task 1
It has been 1,000 days since Ishan first thought of the idea of startin
What a milestone. To celebrate this brainwave, Ishan is getting a cu
Ishan's Brainwave 10/24/2015 cake made. We can use a date function to find out when the journe
Today's Date 7/20/2018 began!

When did Ishaan first think of the idea of Food2Go?


We can use formulas to add or subtract days from a date.

Alia's First Day 4/2/2018 Task 2


Alia has been with Food2Go as an intern for 2 months and 4 days as
6/6/2018 06/06/2018.
Use the DATE function to find out Alia's first day at Food2Go.
(*Hint: You will also need to use the functions YEAR, MONTH and DA
To subtract days and months from a date, we have to use the nest
function.

Task 3
Departure Date & Time 6/5/2018 23:03 Ishan was invited to fly to Singapore for a start up conference.
Ishan departs from New Delhi at 23:03 on 5/6/2018 and arrives in
Arrival Date & Time 6/6/2018 4:27 04:27 on 6/6/2018 (India time)
Flight Duration 5:23
Calculate the duration of Ishan's flight.

In cells B18 and B19 we must enter the dates as well as time so th
calculated. Then, because both times are stated as Indian local tim
a simple subtraction.
In cells B18 and B19 we must enter the dates as well as time so th
calculated. Then, because both times are stated as Indian local tim
a simple subtraction.

Testing start 1:27 Task 4


Food2Go is piloting a new user interface for their app. They ran som
Testing end 14:10 today from 01:37 to 07:10.
Total Testing hours 12:43
How long did they test the new interface for?
Cells B27 and B28 can be filled in either 24 hour or 12 hour time fo
(They are on the same date so date is not required. We can then ru
simple subtraction formula to calculate the difference.
t of the idea of starting Food2Go!
Ishan is getting a custom-made
out when the journey truly

d2Go?
rom a date.

months and 4 days as of

ay at Food2Go.
EAR, MONTH and DAY.)
have to use the nested DATE

up conference.
/2018 and arrives in Singapore at

as well as time so that this can be


ed as Indian local time, we can do
as well as time so that this can be
ed as Indian local time, we can do

eir app. They ran some testing

ur or 12 hour time format.


uired. We can then run a
fference.
Customer Orders
Order ID First Name Last Name Last Ordered Days since last order
2550 Chia Roach 20/05/2018
2413 Lenna Hanline 30/06/2018
1980 Margit Sandoval 03/01/2018
2371 Jon Terranova 04/10/2017
1869 Rubie Ridley 02/03/2018
1992 Lawana Barrett 20/09/2017
3838 Livia Eatman 02/10/2017
2128 Eugene Kuo 21/05/2018
2217 Shaquita Dengler 26/02/2018
2387 Aliza Bulter 23/03/2018
1571 Haywood Sons 20/01/2018
3061 Clementina Orner 29/06/2018
2350 Shawnna Kindrick 09/12/2017
1449 Eva Fujiwara 05/07/2018
3551 Marlene Loftin 23/12/2017
1159 Hillary Presnell 02/12/2017
2126 Lashell Ready 03/09/2017
1072 Israel Iser 15/01/2018
1721 Ambrose Tickle 02/01/2018
1551 Tomeka Moore 11/06/2018
3221 Layla Santamaria 09/01/2018
2136 Arie Hosch 05/02/2018
2838 Glenn Delosreyes 18/09/2017
2947 Olympia Rackham 13/06/2018
2634 Shirley Thomas 22/07/2017
3034 Lorriane Renteria 23/03/2018
2814 Georgeanna Sapienza 16/10/2017
2198 Jacqualine Stiffler 26/01/2018
2994 Michel Vita 15/09/2017
2966 Lajuana Damian 06/03/2018
2424 Kasey Kimrey 09/01/2018
1920 Mathew Harwood 27/12/2017
2140 Nicole Chamberlain 30/05/2018
3974 Steve Ringler 26/07/2017
2150 Golda Abdullah 20/08/2017
1426 Bernie Demont 29/08/2017
1875 Maryann Turrentine 22/08/2017
1152 Roxanne Quail 05/03/2018
2756 Latricia Ehrlich 30/01/2018
2106 Margot Wuensche 22/07/2017
1042 Piper Baber 20/11/2017
3069 Lennie Loya 14/08/2017
2819 Graig Cunningham 17/03/2018
1637 Krish Kapoor 07/07/2018
1497 Elizebeth Sievert 20/06/2018
1103 Earlene Reynaga 21/02/2018
3586 Belkis Canterbury 29/01/2018
2377 Danette Bynum 04/11/2017
1963 Sally Kissinger 21/09/2017
1784 Allegra Madden 23/07/2017
Mini Challenge 2: Date/Time Functions
Here's an extract from Food2Go's customer database.
Task 1 - Calculate the number of days since a customer last
ordered from Food2Go.
Use the TODAY function to fill in Column E.
Task 2 - Use the MAX and MIN functions to identify the customers
from this list who ordered most recently and the longest time ago.
Follow these steps:

In Cell G17 enter the MIN function.


Use a Cell reference to enter the customer's first name into cell
G18.
Now copy Cell G17 into cell G21 and edit it so that it is a MAX
fucntion.
Use a Cell reference to enter the customer's first name into cell
G22.

3. Compare your answers with the "Solution 2" worksheet.

Most recent order from this list

Oldest order from this list


Customer Orders
Order ID First Name Last Name Last Order Days since last order
2550 Chia Roach 5/20/2018 974
2413 Lenna Hanline 6/30/2018 933
1980 Margit Sandoval 03/01/2018 1054
2371 Jon Terranova 04/10/2017 1379
1869 Rubie Ridley 02/03/2018 1080
1992 Lawana Barrett 9/20/2017 1216
3838 Livia Eatman 02/10/2017 1438
2128 Eugene Kuo 5/21/2018 973
2217 Shaquita Dengler 2/26/2018 1057
2387 Aliza Bulter 3/23/2018 1032
1571 Haywood Sons 1/20/2018 1094
3061 Clementina Orner 6/29/2018 934
2350 Shawnna Kindrick 09/12/2017 1224
1449 Eva Fujiwara 05/07/2018 987
3551 Marlene Loftin 12/23/2017 1122
1159 Hillary Presnell 02/12/2017 1436
2126 Lashell Ready 03/09/2017 1411
1072 Israel Iser 1/15/2018 1099
1721 Ambrose Tickle 02/01/2018 1082
1551 Tomeka Moore 11/06/2018 804
3221 Layla Santamaria 09/01/2018 870
2136 Arie Hosch 05/02/2018 992
2838 Glenn Delosreyes 9/18/2017 1218
2947 Olympia Rackham 6/13/2018 950
2634 Shirley Thomas 07/22/17 1276
3034 Lorriane Renteria 03/23/18 1032
2814 Georgeanna Sapienza 10/16/17 1190
2198 Jacqualine Stiffler 01/26/18 1088
2994 Michel Vita 09/15/17 1221
2966 Lajuana Damian 06/03/2018 960
2424 Kasey Kimrey 09/01/2018 870
1920 Mathew Harwood 12/27/2017 1118
2140 Nicole Chamberlain 5/30/2018 964
3974 Steve Ringler 7/26/2017 1272
2150 Golda Abdullah 8/20/2017 1247
1426 Bernie Demont 8/29/2017 1238
1875 Maryann Turrentine 8/22/2017 1245
1152 Roxanne Quail 05/03/2018 991
2756 Latricia Ehrlich 1/30/2018 1084
2106 Margot Wuensche 7/22/2017 1276
1042 Piper Baber 11/20/2017 1155
3069 Lennie Loya 8/14/2017 1253
2819 Graig Cunningham 3/17/2018 1038
1637 Krish Kapoor 07/07/2018 926
1497 Elizebeth Sievert 6/20/2018 943
1103 Earlene Reynaga 2/21/2018 1062
3586 Belkis Canterbury 1/29/2018 1085
2377 Danette Bynum 04/11/2017 1378
1963 Sally Kissinger 9/21/2017 1215
1784 Allegra Madden 7/23/2017 1275
Mini Challenge 2: Date/Time Functions
Solution

Compare your results. Click on the yellow cells to see the formulas
entered. Read the notes in blue below.
Task 1 - Calculate the number of days since a customer last ordered
from Food2Go.
Use the TODAY function to fill in Column E.

To get today's date according to our computer system time, we


can use “=TODAY()”
Task 2 - Use the MAX and MIN functions to identify the customers
from this list who ordered most recently and the longest time ago.

In the MIN function you must use ABSOLUTE CELL REFERENCES


since you will copy this function and edit to a MAX function.

Most recent order from this list


804
Krish

Oldest order from this list


1438
Shirley

You might also like