Excelhandling Date and Time in Spreadsheets
Excelhandling Date and Time in Spreadsheets
TIME IN
SPREADSHEETS
Name: Akib Akhtar Ansari
Roll no: 23GSOB2011058
Overview of Handling Date and Time
Note that both the TODAY and NOW functions will recalculate whenever your workbook is
reloaded. To retain the value at the time the formula is calculated, copy the result, paste it back
into the cell, and select “Paste values only” from the paste options dropdown.
How to Calculate the Number of Days Between Two Dates (DAYS)
With the DAYS function, you can easily calculate the difference in days between two dates.
In the example above, we’ve used the DAYS function in Cells C2 and C3 to calculate the number
of days between the adjacent start and end dates. Note that the DAYS function works by taking
the first argument minus the second argument; if you list the start date as your first argument,
the function will return a negative value.
How to Calculate the Number of Working Days Between Two Dates
(NETWORKDAYS)
Alternatively, the Network Days function can calculate the number of working days
between two dates. When calculating duration, NETWORKDAYS automatically excludes
weekends and can include an additional argument to exclude other specified holidays.
Note that, because of the difference in function syntax, the order of our arguments has been reversed from
the previous DAYS example.
How to Calculate an End Date (WORKDAY)
With the WorkDay function, you can automatically calculate an end date based on a specified
start date and duration, input as a number of workdays.
The WORKDAY function can be especially useful in building out a project management
workbook where you’ve estimated approximate durations for each task and want to exclude
non-working days from your schedule.
To calculate an end date taking into account all days including weekends and holidays, you
can simply calculate the SUM of a start date and duration.
THANK YOU