TODAY
NOW
WORKDAY
DAYS
NETWORKDAYS
YEARFRAC
Returns a date that is the specified number of months before or after an initial supplied start date
=EDATE(Start_Date,months)
Returns a date that is the last day of the month which is a specified number of months before or after an initial supplie
=EOMONTH(Start_Date,months)
Returns a date that is a supplied number of working days (excluding weekends & holidays) ahead of a given start date
=Workday(Start_date,days,[holidays])
Calculates the number of days between 2 dates (New in Excel 2013)
=DAYS(end_date, Start_date)
Returns the number of whole networkdays (excluding weekends & holidays), between two supplied dates
=NETWORKDAYS(Start_date,end_date,[holidays])
Calculates the fraction of the year represented by the number of whole days between two dates
=YEARFRAC(start_date,end_date,[basis])
ed start date
12/31/1899
01/01/1890
If the digits are 30 or above, then Excel assumes the digit represents year in 20th Century
If the digits are lower than 30, then Excel assumes the digit represents year in the 21st Century
29
30
1/1/1930
1/1/2029
=DATE (YEAR.MONTH,DATE)
Year Required. The value of the year argument can include one to four digits. Excel interprets the year ar
date system your computer is using. By default, Microsoft Excel for Windows uses the 1900 date system.
Month Required. A positive or negative integer representing the month of the year from 1 to 12
Day
4
Required. A positive or negative integer representing the day of the month from
Month
4
4
5
12
12
Day
19
6
19
15
20
If year is between 1900 and 9999 (inclusive), Excel uses that value as the year.
Month - Required.
If month is greater than 12, month adds that number of months to the first month in the year specified. For
returns the serial number representing February 2, 2009.
If month is less than 1, month subtracts the magnitude of that number of months, plus 1, from the first mon
example, DATE(2008,-3,2) returns the serial number representing September 2, 2007.
Numbers Less than 0 and Greater than 10000, excel returns #NUM! Error Value
Year
Month
Day
2001
2012
2014
2016
1956
14
-5
0
32
64
19
6
19
15
20
Day - Required.
If day is greater than the number of days in the month specified, day adds that number of days to the first da
example, DATE(2008,1,35) returns the serial number representing February 4, 2008. (Try)
If day is less than 1, day subtracts the magnitude that number of days, plus one, from the first day of the mo
DATE(2008,1,-15) returns the serial number representing December 16, 2007.
Numbers Less than 0 and Greater than 10000, excel returns #NUM! Error Value
Year
2001
2012
2014
2016
1956
Month
5
7
3
9
11
Day
131
-74
289
460
-800
Exercise
1. Convert the Values into Dates by Applying Format Cells (Use Different Formats)
2. Extract Year from the Date
3. Extract Month from the Date
4. Extract Day from the Date
5. Convert Year, Month and Day to Year using Date Function
6. Convert Date to Date Value
Value
Date
Year
Month
Day
Date
41343
54532
42586
26452
18903
21345
22132
Extract Weeknumber and Weekday from the above Values
WeekNumber
Weekday
Week Number
41343
54532
42586
26452
18903
21345
22132
Default Sunday is 1 as Week Starting
Date Value
Week Number
=DATEVALUE(TEXT(I70,"mm/dd/yy"))
Week Day
Returns a date that is the specified number of months before or after an initial suppli
=EDATE(Start_Date,months)
Returns a date that is the last day of the month which is a specified number of month
=EOMONTH(Start_Date,months)
Returns a date that is a supplied number of working days (excluding weekends & ho
=Workday(Start_date,days,[holidays])
Calculates the number of days between 2 dates (New in Excel 2013)
=DAYS(end_date, Start_date)
Returns the number of whole networkdays (excluding weekends & holidays), betwee
=NETWORKDAYS(Start_date,end_date,[holidays])
Calculates the fraction of the year represented by the number of whole days between
=YEARFRAC(start_date,end_date,[basis])
EDATE
31-Dec-15
31-Dec-15
11-Dec-15
28-Feb-16
29-Feb-16
29-Feb-16
1
-1
2
12
12
-12
EOMONTH
1-Jan-12
1-Jan-12
1-Jan-12
29-Feb-12
28-Feb-11
9
-12
0
12
12
WORKDAY
Start Date
Holidays
1/Dec/2015
25/Jan/2015
28/Dec/2015
1/Jan/2016
DAYS
04/Dec/11
12/Jan/12
01/Jan/15
02/Feb/15
NETWORKDAY
Start Date
End Date
Holidays
1/Dec/2015
4/Jan/2016
25/Jan/2015
28/Dec/2015
1/Jan/2016
YEARFRAC
Start Date:
End Date:
1-Jan-15
###
- US (NASD) 30/360 b
- actual/actual basis
- actual/360 basis
- actual/365 basis
- European 30/360 ba
Excel 2013)
Time Function
1
Time values are a portion of a date value and represented by a decimal number (for example, 12:00
PM is represented as 0.5 because it is half of a day).
Time
15:55
10:30
12:40
12:00
18:00
Value
Notes:
A number from 0 to 23, representing the hour.
A number from 0 to 59, representing the minute.
A number from 0 to 59, representing the second
Minute Required. A number from 0 to 32767 representing the minute. Any value greater than 5
and minutes. For example, TIME(0,750,0) = TIME(12,30,0) = .520833 or 12:30 PM. (Try)
SecondRequired. A number from 0 to 32767 representing the second. Any value greate
hours, minutes, and seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148 or 1
Hour Required. A number from 0 (zero) to 32767 representing the hour. Any value greater than 23 will be di
will be treated as the hour value. For example, TIME(27,0,0) = TIME(3,0,0) = .125 or 3:00 AM.(Try)
Hour
24
55
46
-26
15
Minutes
45
34
54
21
23
Seconds
45
56
32
21
14
Minutes - Required.
Second Required. A number from 0 to 32767 representing the second. Any value greater than 59 will be conv
seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148 or 12:33:20 AM (Try)
Second Required. A number from 0 to 32767 representing the second. Any value greater than 59 will be conv
seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148 or 12:33:20 AM (Try)
Hour
24
55
46
56
15
Minutes
67
125
326
-21
545
Seconds
45
56
32
21
14
Seconds - Required.
If day is greater than the number of days in the month specified, day adds that number of days to the first day in
DATE(2008,1,35) returns the serial number representing February 4, 2008. (Try)
Hour
24
55
46
34
15
Minutes
45
34
54
21
23
Seconds
451
567
3222
-32
234
Exercise
1. Convert the Values into Time
2. Convert the Time to 24 Hour Format
3. Extract the Hour from the Value
4. Extract Month from the Value
5. Extract Seconds from the Value
6. Convert to Hours, Minutes and Seconds using Time Function
7. Convert Time to Time Value
Value
0.462
0.866
0.928
0.211
0.124
0.054
0.323
Time (12)
Time (24)
Hour
Minutes
Seconds
Time
Date Value
=TIMEVALUE(TEXT(H75,"hh:mm:ss"))
When I enter dates in Excel, I often see a number such as 37625 rather than a date such as
1/4/2003. What does this number mean, and how can I change it to a normal date?
Dates
37622
37623
37624
37625
37626
37627
37628
37629
37630
37631
Values
Year
Month
4/Jan/2003
February 1, 1901
04/Jan/03
1/4/03
04/01/2003
03/01/01
4
How can I determine a date that is 50 workdays after another date? How can I exclude holidays, if I want to
50 workdays from start date
Start date
Later date
1/3/2003
8/4/2003
150
Workdays between
(no holidays)
152
time formats.
Time Practice
8:30 AM =TIME(8,30,0)
excluding
holidays
8:30 PM =time(20,30,0)
3:10:30 PM =TIME(15,10,30)
1:10:30 AM =TIME(25,10,30)
0.3541666667 =TIMEVALUE("8:30")
Calculating Time Difference
Change the format to Number Format
7
5/12/2006 8:12
6/10/2006 12:30
5/12/2006 8:12
6/10/2006 7:30
I added up the total time an employee worked, and I never get more than 24 hours. What did I do wrong?
mon
tues
wed
thur
fri
total
38 hours 48 min
total reformatt
Day
Day of the
Week
Putting date
together
de holidays, if I want to
Holidays
7/4/2003
1/20/2003