You are on page 1of 6

ECH 13: Time and time

Functions
Book: Microsoft Excel 2016 Data Analysis and Business Modeling
Time Format

 Time Format
 8:30 pm
 8:30 p.m.
 20:30
 8:30:25 pm
 How is time stored in Excel?
 2:10 am  (2h * 60min + 10 min) / (24h * 60 min) = 0.090277
 What about 2:10:30 am?

Dr. K. Chen, 2015 2


Time Difference and Current Time

 Cell A4 is =a2 – a3
 Screenshot (left): A4 in Time format
 Screenshot (right): A4 in General format
 Current date and time:
 =now()  5/19/2015 21:17
 =now() – today()  21:17
 Calculate time difference:

Dr. K. Chen, 2015 3


Simple Date and Time Functions

 See the screenshots on right for


year(), month(), day(), hour(),
minute() and second() functions.

 Q: What’s wrong with the sum of

Dr. K. Chen, 2015 4


Exercises: AutoFill is your friend

 Exercise 1: create a time schedule with a 30-minute


increment (see screenshot on right).
1. Create values for a1 and a2.
2. Highlight a1 and a2
3. Drag lower-right corner to copy to other cells
 Exercise 2: Create a weekly schedule by using autofill
for both time and day

Dr. K. Chen, 2015 5


Exercises

Dr. K. Chen, 2015 6

You might also like