Is there a formula that will determine the number of years, months and days that someone has been employed with an institution? If you know the person’s start date…what function can I use to determine this information.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Excel Function Question (Excel 97)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Excel Function Question (Excel 97)
- This topic has 3 replies, 4 voices, and was last updated 22 years ago.
AuthorTopicWSmisharenu99
AskWoody LoungerJune 3, 2003 at 3:47 pm #388472Viewing 1 reply threadAuthorReplies-
WSBat17
AskWoody Lounger -
WSpieterse
AskWoody LoungerJune 4, 2003 at 5:13 am #682399If I remember correctly, datedif is missing from Xl97 Help. It is there in the XL2000 help file:
DATEDIF
See alsoCalculates the number of days, months, or years between two dates. This function is provided for compatibility with Lotus 1-2-3.
Syntax
DATEDIF(start_date,end_date,unit)
Start_date is a date that represents the first, or starting, date of the period. Dates may be entered as text strings within quotation marks (for example, “2001/1/30”), as serial numbers (for example, 36921, which represents January 30, 2001, if you’re using the 1900 date system), or as the results of other formulas or functions (for example, DATEVALUE(“2001/1/30”)). For more information about date serial numbers, see NOW.
End_date is a date that represents the last, or ending, date of the period.
Unit is the type of information you want returned.
Unit Returns
“Y” The number of complete years in the period.
“M” The number of complete months in the period.
“D” The number of days in the period.
“MD” The difference between the days in start_date and end_date. The months and years of the dates are ignored.
“YM” The difference between the months in start_date and end_date. The days and years of the dates are ignored.
“YD” The difference between the days of start_date and end_date. The years of the dates are ignored.Remarks
Microsoft Excel stores dates as sequential serial numbers so that it can perform calculations on them. Excel stores January 1, 1900, as serial number 1 if your workbook uses the 1900 date system. If your workbook uses the 1904 date system, Excel stores January 1, 1904, as serial number 0 (January 2, 1904, is serial number 1). For example, in the 1900 date system, Excel stores January 1, 1998, as serial number 35796 because it is 35,795 days after January 1, 1900. Learn more about how Microsoft Excel stores dates and times.
Excel for Windows and Excel for the Macintosh use different date systems as their default. For more information, see NOW.
ExamplesDATEDIF(“2001/1/1″,”2003/1/1″,”Y”) equals 2, or two complete years in the period.
DATEDIF(“2001/6/1″,”2002/8/15″,”D”) equals 440, or 440 days between June 1, 2001, and August 15, 2002.
DATEDIF(“2001/6/1″,”2002/8/15″,”YD”) equals 75, or 75 days between June 1 and August 15, ignoring the years of the dates.
DATEDIF(“2001/6/1″,”2002/8/15″,”MD”) equals 14, or the difference between 1 and 15
-
-
WSsdckapr
AskWoody Lounger
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
What is wrong with simple approach? (Awaiting moderation)
by
WSSpoke36
1 hour, 38 minutes ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
4 hours, 59 minutes ago -
June 2025 Office non-Security Updates
by
PKCano
8 hours, 12 minutes ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
52 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
8 hours, 8 minutes ago -
How start headers and page numbers on page 3?
by
Davidhs
18 hours, 32 minutes ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
13 hours, 8 minutes ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
1 day, 3 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
1 day, 3 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
16 hours, 56 minutes ago -
Firefox 139
by
Charlie
9 hours, 31 minutes ago -
Who knows what?
by
Will Fastie
4 hours, 4 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
1 day, 3 hours ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
22 hours, 22 minutes ago -
Misbehaving devices
by
Susan Bradley
3 hours, 6 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
2 days, 9 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
7 hours, 15 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
2 days, 8 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
1 day, 7 hours ago -
Edge Seems To Be Gaining Weight
by
bbearren
1 day, 22 hours ago -
Rufus is available from the MSFT Store
by
PL1
2 days, 6 hours ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
3 days, 9 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
1 day, 9 hours ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
1 day, 8 hours ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
3 days, 5 hours ago -
Office gets current release
by
Susan Bradley
3 days, 8 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
4 days, 22 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
4 days, 6 hours ago -
Stop the OneDrive defaults
by
CWBillow
4 days, 22 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
5 days, 8 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.