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

Lab 5&6

Uploaded by

Kanishkar
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Lab 5&6

Uploaded by

Kanishkar
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Live Virtual Class

Topic : Date and Time Handling in Excel


Faculty Name : Kusum Shewa
Agenda
Working with Dates in Excel
• Obtaining todays date
• Finding a workday after specified days
• Number of workdays between two given Dates
• Customizing the definition of a Weekend
• Extracting year month day from Date
• Extracting day of the week from date
• Obtaining date from Year, Month, Day
• Calculating Year, Months and Days between two days
Agenda
Working with Time in Excel
• Working with time values
• Obtaining the current time
• Time formats
• Converting time in serial format to Hour-Minute-Second format
• Converting time in Hour-Minute-Second format to serial format
• Obtaining time from Hour, Minute and Second
• Extracting Hour, Minute and Second from Time
• Number of hours between start time and end time
Working with Dates in Excel
Obtaining Today’s Date

• Today’s Date in Excel can be obtained by two methods :


1. Excel Shortcut Key (Ctrl + ;)
2. Today Function (=TODAY())
WORKDAY & NETWORKDAYS Functions in Excel

• We can calculate a workday from a date after a specific no. of days by using
WORKDAY Function

• We can calculate a workday between two dates by using NETWORKDAYS Function


WEEKDAY Function in Excel

• We can use WEEKDAY function to return a number between 1-7 representing the
day of week.
• By default, WEEKDAY returns 1 for Sunday and 7 for Saturday, but this is
configurable.

• WEEKDAY Function is generally not used independently in Excel, but as a part of


other functions for getting meaningful results.
• You may refer the following link to understand the uses of WEEKDAY Function :
USES OF WEEKDAY IN EXCEL
YEAR, MONTH, DAY & DATE Function in Excel

• We can use YEAR, MONTH, DAY functions to return the year, month and day
corresponding to a date in Excel.

• The DATE Function can be used to combine to get a date with Year, Month and Day
as Input.
Difference Between two dates

• The DATEDIF Function can be used to calculate difference between two dates. The
difference may be calculated in terms of Year, Month or Days.
5 min break

• This a 5 min break for you


• Have a glass of water
• Take a deep breath
• Note down any doubt you have till now
• Join back

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
Working with Time Values in
Excel
Obtaining Current Time

• Current Time in Excel can be obtained by two methods :


1. Excel Shortcut Key (Ctrl + Shift + ;)
2. Now Function (=NOW())
Time Formats in Excel

• There are few predefined Time Formats available in Excel, which can be seen here.
Converting Serial No. into Time and vis a versa

• The Time Formats, when formatted as General will show a serial no. Basically it’s a
calculation of Time starting from 1/1/1900 00:00 till specified time. It can be
formatted using Time Formats.
• Similarly, Time can be formatted as a Serial No. by selecting format as General.

SPECIFIED TIME FORMATS


HOUR, MINUTE, SECOND & TIME Function in Excel

• We can use HOUR, MINUTE & SECOND functions to return the Hour, Minute &
Second corresponding to a Time in Excel.

• The TIME Function can be used to combine Hour, Minute & Second as Input to get
a Time.
Time Difference Between two dates with Time

• The Time difference between two dates with time can simply be calculated by
subtraction. It may be formatted as Hours, Minutes and Seconds, if required.
Any doubts?
Summary

Let’s Revise what we learnt today


• Obtaining todays date
• Finding a workday after specified days, Number of workdays between two given
Dates & Customizing the definition of a Weekend
• Extracting year month day from Date
• Obtaining date from Year, Month, Day
• Calculating Difference between two days

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
Summary

• Working with time values


• Obtaining the current time
• Time formats
• Converting time in serial format to Hour-Minute-Second format & vis a versa
• Obtaining time from Hour, Minute and Second & Extracting Hour, Minute and
Second from Time
• Number of hours between start time and end time

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM

You might also like