formating cells

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

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Formating cells

Formating cells

resolvedResolved · Medium Priority · Version 2007

Claire has attended:
Excel Intermediate course

Formating cells

How to get the number of days between dates?

RE: Formating cells

Hi Claire

Thank you for your question

You can use the datedif function to do this. The function has the following arguments

=Datedif(First date,Second date,"d")

Here the "d" indicates that the difference between the dates is to be returned in days. Alternatives are "m" for months and "y" for years.

Please note that this function needs to be typed in as it is not covered in the paste function dialog

Regards

Stephen

Mon 30 Mar 2009: Automatically marked as resolved.


 

Excel tip:

The dual nature of toolbar buttons

Many toolbar buttons are dual purpose, though the two purposes are often linked in some way. For example, Align Left aligns a cell's contents to the left of the cell. However, hold down Shift and press the Align Left button: Excel aligns the cell contents to the right.
You may respond: So what? Well, you can reduce the number of buttons on your toolbar to make your screen less cluttered and allow more room for, perhaps, some of your own commands. After all, what's the point of an Align Right button when Shift+Align Left does the same thing?

View all Excel hints and tips


Server loaded in 0.09 secs.