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

mark east

ResolvedVersion 2003

Selina has attended:
Excel Intermediate course

Mark East

When calculating the difference between two dates (possibly over more than a year), how do I show the result as a number of Months? Also can this be done as a formula to include today's date as the latter of the two dates?

RE: Mark East

Hi Salina

If cell A1 is date from last year and cell A2 is current date you would do the formula as follows:
In cell A3 you would do a subtraction of the 2 cells and then format the cell as a number. This would give you number of days so we could make it a monthly figure by dividing by 30. Your formula would look like this:
=SUM(B1-A1)/30
Ensure that you have formated the cell as a number.

This cell would round at the moment and for your purposes you would want excel to always round down and never up. So you will need to do a further formula in cell D1 to force a round down. our formula would look like this =ROUNDDOWN(C1,0)

Hope that helps.
David

Excel tip:

Select only cell that contain text to lock format

For selecting cells that only contain Text in Excel

By selecting cells that only contain text, you can delete, fill or protect cells of this type.

Use short cut to Go to box (F5) or Edit, Go to
In the dialog box, click special button & select Constants and only check text or any other desired type.

Click OK.

And text cells will all be highlighted for you to apply format. Please note only works on one sheet at a time.

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.11 secs.