Vous êtes sur la page 1sur 12

# Find the difference in years:

Start date
End date
1/14/2014
5/6/2016

Start date
End date
1/1/2014
5/6/2016

Start date
End date
1/1/2014
5/6/2016

Start date
End date
1/1/2014
5/6/2016

## Calculate age in accumulated

years, months and days:

Start date
End date
1/1/2014
5/6/2016

All in one:

## Tip: Press ALT+ENTER to put line breaks in your formula.

Also, press CTRL+SHIFT+U if you cant see the whole formul

## Calculate the difference between

today and another date:

## Calculate workdays, with

or without holidays:

End date
12/31/3000

## First, make a list of all holidays in a separate area.

Make sure each date is in its own cell.
Holidays
1/1/2016
1/18/2016
2/15/2016
5/30/2016
7/4/2016

9/5/2016
10/10/2016
11/11/2016
11/24/2016
12/25/2016

## After you put each holiday in its own cell,

select those cells. Then go to Formulas > Define Name.

## Name the range, and click OK.

Note: We have done this already in this workbook.
We named the range, "MyHolidays." You can see
the name by going to Formulas > Name Manager.
In this example, the NETWORKDAYS.INTL
function calculates the number of workdays:
Start date
End date
1/1/2016
12/31/2016
In Excel 2007, you can use the NETWORKDAYS
function to calculate the number of workdays:
Start date
End date
1/1/2016
12/31/2016

## If you want your holidays inside a formula,

you can use extra brackets, quotes, and commas.
This highlighted cell shows an example
of 2 holiday dates within the formula:
Start date
End date
1/1/2016
12/31/2016
And here's an Excel 2007 example of
of 2 holiday dates within the formula:
Start date
End date
1/1/2016
12/31/2016

## Calculate the difference

between two times:

## Calculate the difference

between two times:

Start time
End time
7:15 AM
4:30 PM

## Start date/time End date/time

1/1/16 1:00 PM
1/2/16 2:00 PM

This document is provided as is. Information and views expressed in this document, including URL
other Internet Web site references, may change without notice.

Some examples depicted herein are provided for illustration only and are fictitious. No real associat
connection is intended or should be inferred.

This document does not provide you with any legal rights to any intellectual property in any Microso
product. You may copy and use this document for your internal, reference purposes.

This document may be available in English only. Clicking embedded links may redirect you to a web
whose content is in English.
Microsoft, Excel, Internet Explorer, and Windows are trademarks of Microsoft Corporation. All other
trademarks are property of their respective owners.

Result
2
Result
28

Result
856

Result
122.29

Result

## Make sure to format this particular result as a num

Press CTRL + 1, and then select Number > Decim

Unit of time
2 years
4 months
5 days

Err:501

## ut line breaks in your formula.

if you cant see the whole formula.

## Use ampersands, quotes, spaces and text to put a

calculations in one cell. It's a longer formula to typ
all three results are combined into one cell.

Result

ts own cell.

## in its own cell,

to Formulas > Define Name.

984

## Putting TODAY() in the formula allows you to find t

between the current day of your computer, with th
12/31/3000. The date of TODAY() will change if you
on a future day.

Holidays." You can see
mulas > Name Manager.

ORKDAYS.INTL

mber of workdays:
Result
252

the NETWORKDAYS
umber of workdays:
Result

## The "1" parameter tells NETWORKDAYS.INTL to exc

weekend days of Saturdays and Sundays. But you
for Sunday and Monday, "3" for Monday and Tuesd
on. To see all possible parameters, delete the "1" f
formula and pick from the list.
In Excel 2007, this cell will return the #NAME? error.

252

nside a formula,
, quotes, and commas.

an example
e formula:
Result
260

xample of
e formula:
Result
260

Difference
9:15

Difference
25:00

## In Excel 2007, you must use the NETWORKDAYS fu

function doesn't have weekend parameters. It alwa
that your weekends are on Saturdays and Sundays

## ntellectual property in any Microsoft

ference purposes.

## Make sure to format this particular result as a number.

Press CTRL + 1, and then select Number > Decimal places: 2

Use ampersands, quotes, spaces and text to put all three age
calculations in one cell. It's a longer formula to type, but at least
all three results are combined into one cell.

## Putting TODAY() in the formula allows you to find the difference

between the current day of your computer, with the end date of
12/31/3000. The date of TODAY() will change if you open the file
on a future day.

## The "1" parameter tells NETWORKDAYS.INTL to exclude

weekend days of Saturdays and Sundays. But you can use "2"
for Sunday and Monday, "3" for Monday and Tuesday, and so
on. To see all possible parameters, delete the "1" from this
formula and pick from the list.
In Excel 2007, this cell will return the #NAME? error.

## In Excel 2007, you must use the NETWORKDAYS function. This

function doesn't have weekend parameters. It always assumes
that your weekends are on Saturdays and Sundays.