formulas
Microsoft Office Training McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams add this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Formulas

Formulas

The UK's most regular instructor-led training courses.
Training information: visual+basic+for+excel+courses+london · Excel courses · Microsoft Excel Training
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version 2003

Formulas

Co has attended:
Excel Intermediate course
Excel Advanced course

by - delegate Co [1 post] (2008 Jun 12 Thu, 16:10) replyReply

how to use dated if formulas

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2009 Jan 12 Mon Bayswater 3 book now £224 £224
2007 2009 Jan 13 Tue Bloomsbury 1 book now £224 £224
2002/XP 2009 Jan 13 Tue Tooting 0 FULL    
2003 2009 Jan 15 Thu Southwark 1 book now £215 £215
2007 2009 Jan 20 Tue Bloomsbury 3 book now £224 £224
2003 2009 Jan 20 Tue Southwark 4 book now £207 £215
Full Schedule: See all 134 Excel Intermediate course dates.
Bookings currently available until 30th March 2010.

RE: Formulas

by - trainer Carlos gold contributer[496 posts] (2008 Jul 1 Tue, 16:03) Edited on 2008 Jul 1 Tue, 16:10 replyReply

Dear Co

The DATEDIF function computes the difference between two dates in a variety of different intervals, such number of years, months, or days.

This function is available in all versions of Excel since at least version 5/95, but was entered as a form of “Easter Egg” and does not appear in the Function dialogbox.

Do not confuse the DATEDIF worksheet function with the DateDiff VBA function.

The syntax for DATEDIF is as follows:

=DATEDIF(Date1, Date2, Interval)

Where:
Date1 is the first date,
Date2 is the second date,
Interval is the interval type to return.

If Date1 is later than Date2, DATEDIF will return a #NUM! error.

If either Date1 or Date2 is not a valid date, DATEDIF will return a #VALUE error.

The Interval value should be one of

m - Months - Complete calendar months between the dates.

d - Days - Number of days between the dates.

y - Years - Complete calendar years between the dates.

ym - Months Excluding Years - Complete calendar months between the dates as if they were of the same year.

yd - Days Excluding Years - Complete calendar days between the dates as if they were of the same year.

md - Days Excluding Years And Months - Complete calendar days between the dates as if they were of the same month and same year.

If Interval is not one of the items listed in above, DATEDIF will return a #NUM error.

If you are including the Interval string directly within the formula, you must enclose it in double quotes:

=DATEDIF(Date1,Date2,"m")

If you have the interval in another cell referenced by the formula, that cell should not have quotes around the interval string. For example, with the formula

=DATEDIF(Date1,Date2,A1)

cell A1 should contain m not "m".

Hope this helps

Carlos


Related articles

· Microsoft Excel Training Course
· How to Create Better Excel Spreadsheets: Part Three
· How Excel Training Can Improve Your Company's Sales Process
· How to Create Better Excel Spreadsheets: Part Two
· An Introduction to Microsoft Excel: Top Features for the Excel Novice

Please browse our web site to find out more about
visual+basic+for+excel+courses+london and other Microsoft training courses.

Excel tip:

Separate the year from a date

To separate the year from a date use the =year() function, eg a date is in cell A1 and in A2 you wish to display the year enter the function =year(A1)

View all Excel hints and tips

Rate this page:
3.0/5 (5 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Training venues
Client list
FAQ
Pricing and availability
Course details / Syllabus

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London
Microsoft Office training

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
Microsoft access courses · Microsoft training access course
Microsoft+access+training · Access courses in london

Training Information
Training Articles

AddThis Social Bookmark Button What's this?
Add to: Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo