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

excel vba courses - test question

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel vba courses - Test question

excel vba courses - Test question

ResolvedVersion Standard

John has attended:
Excel Intermediate course

Test question

How do you input a formula that will keep track of the date from a given date placed in the spreadsheet. Say to keep an automatically updating track of how long an employee has been with a company?

Calculate difference in dates

Hi John

What you want is to find the difference between two dates. So as an example:

If your employee joined the company on 23/05/2004 (In cell C5), and you want to know how many days he has been with the company, the you subtract his start date from today's date.

So in the cell where the answer is to go you write

=Today() - C5

The Today() function will always use today's date from the computer.

Hope this helps

Carlos

 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Moving between split pane sections in a spreadsheet

If you have used the split panes feature in your worksheet, use the following keyboard shortcut keys to move quickly and effortlessly between paned sections:

F6 - Move to the next pane
Shift + F6 - Move to the previous pane

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