0% found this document useful (0 votes)
10 views

Date & Time Functions

Uploaded by

Shivani Gupta
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Date & Time Functions

Uploaded by

Shivani Gupta
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 8

LOOKUPASHEESH.

IN
Function Definition
Today Returns the current date
DAY Extracts the day from the selected date
MONTH Extracts the month from the selected date
YEAR Extracts the year from the selected date
DATE Returns the number that represents the date

NOW Returns the current date & time


Hour Returns hour from the selected time
MIN Returns minutes from the selected time
SEC Returns seconds from the selected time
TIME Converts hours, minutes & seconds to time

WORKDAY Returns the serial number of the date that is after or before the specified number of days
NETWORKDAYS Returns the number of working days between two given dates.

DATEDIF Undocumented function: Returns years, months and days


Y Returns number of years between two dates
M Returns number of months between two dates
D Returns number of days between two dates
YM Return the differnce of months
MD Return the differnce of days

EDATE Returns the same date of future or past basis the specified number of months
EOMONTH Returns the last date of the month in future or past basis the specified number of months
Workdays
Example Project Start No days Holiday List Ctrl+Shift+;
22-Jan-25 15-Dec-19 31 25-Dec-19 Ctrl+;
22 1-Jan-20
1 5-Jan-20
2025 7-Jan-20 6
22-Jan-25 7
Networkdays 47 4
3:12:16 PM Start Date End Date Holiday List 16
15 1-Dec-16 10-Jan-17 25-Dec-16 31
12 1-Jan-17
17 5-Jan-17
15:12:17 7-Jan-17

30-Jan-20 DatedIF
28 Start Date End Date
15-Aug-47 22-Jan-25
929
77 Edate & Eomonth
929 Conctract start # of Months
28285 22-Jan-25 5
5
7

22-Jun-25
30-Jun-25

Equip yourself with more


advance tips and techniques
@LOOKUPASHEESH.IN
5:52 AM
5/10/2019
10
5
2019
10-May-2019

03:12:16 PM
15
12
17
15:12:17

30-Jan-20
28

77
Working days to Date of Month of
Project Start Date
complete Completion completion
28-Mar-13 420 17-Nov-14 7 17-Nov-14 17-Nov-2014 7
2-Apr-13 85 30-Jul-13 3 30-Jul-2013 3
12-Apr-13 166 6-Dec-13 7 6-Dec-2013 7
3-May-13 133 11-Nov-13 6 11-Nov-2013 6
24-May-13 136 6-Dec-13 6 6-Dec-2013 6
14-Jun-13 171 18-Feb-14 8 18-Feb-2014 8
5-Jul-13 194 14-Apr-14 9 14-Apr-2014 9
26-Jul-13 198 9-May-14 9 9-May-2014 9
List of Holidays

15-Aug-13 Independence Day


2-Oct-13 Gandhi Jayanti
13-Oct-13 Vijay Dushmi
16-Oct-13 Bakri Eid
3-Nov-13 Diwali
15-Nov-13 Muharram
25-Dec-13 Christmas
1-Jan-14 New Year Eve
26-Jan-14 Republic Day
27-Feb-14 Maha Shivratri
Date 22-Jan-25

Month 1st Friday 2nd Friday 3rd Friday


Current Month January 03-Jan-25 10-Jan-25 17-Jan-25
Next Month February 07-Feb-25 14-Feb-25 21-Feb-25
Following Month March 07-Mar-25 14-Mar-25 21-Mar-25

Create the same table as above using Formulae


Month 1st Friday 2nd Friday 3rd Friday

Current Month January 27-Jan-25 03-Jan-00

Next Month February

Following Month March

1-Jan-25 2-Jan-25 3-Jan-25


1 1 1

1-Jan-25 2-Jan-25
1

3-Jan-25 10-Jan-25 17-Jan-25


4th Friday 5th Friday
24-Jan-25 31-Jan-25 4 5 6
28-Feb-25
28-Mar-25

Formulae 1-Jan-25 1
4th Friday 5th Friday

January

February

March
April
May
4-Jan-25 5-Jan-25 6-Jan-25 7-Jan-25 8-Jan-25 9-Jan-25 10-Jan-25 11-Jan-25 12-Jan-25
1 1 1 1 1 1 1 1 1

3-Jan-25 4-Jan-25 5-Jan-25 6-Jan-25 7-Jan-25 8-Jan-25 9-Jan-25 10-Jan-25 11-Jan-25

24-Jan-25 31-Jan-25
7 1 2

13-Jan-25
1

You might also like