Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel vba training - dates

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel vba training - Dates

excel vba training - Dates

ResolvedVersion Standard

Jennifer has attended:
Excel Advanced course
Dreamweaver 8 Introduction course
Dreamweaver 8 Intermediate course
Excel VBA Intro Intermediate course
Excel VBA Intro Intermediate course

Dates

how do you get the difference between two dates returned as year and number of months? (eg. years + month/12)

RE: Dates

Hi Jennifer

Thanks for your question.

I'm not sure you can get the difference between two dates to display as number of years and months - you can get the difference to display as one or other other as far as I know.

A function you might be interested in looking at in relation to your question is the DATEDIF (date difference) function. Here is a link to an article that provides some useful information on this function, including what error messages could come up when you use if and what they mean:

http://www.cpearson.com/excel/datedif.htm

thanks
Amanda

Excel tip:

LARGE and SMALL functions and their uses

Two of Excel's most common functions are the MAX and MIN functions which will display the largest (MAX) or smallest (MIN) value in a series. What if you need the 2nd or 3rd largest or smallest values instead of the largest or smallest?

The =LARGE(array,n) returns the nth largest value of a series.

The =SMALL(array,n) function returns the nth smallest value of a series.

In both functions, 'n' represents the order of the number you want to display. For example, putting in 2 as n will give you the second highest number; putting in 3 as n will give you the third highest number.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.