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

pivot tables

ResolvedVersion 2003

Barbara has attended:
Excel Advanced course

Pivot tables

i have a spreadsheet with student names, start date of their course (which lasts 3 years, and the date of their withdrawal. I need to know whether the students withdrew in the 1st, 2nd or 3rd year of their training. can you help please?

RE: pivot tables

Hello Barbara

Thank you for your question.

If the spreadsheet records the start date and withdrawal date in separate cells, then you can use the DATEDIF function to calculate the difference between the two dates, and express the difference in years.

If a student starts and withdraws in the same year, then the result will appear as a 0; if the student starts in one year and withdraws in the next, the result will be 1 etc; so you will need to add 1 onto the result of the formula.

Please note the DATEDIF function does not appear in the function wizard and there is no Help topic for it so you will need to type it into the spreadsheet manually.

I've attached an example; the formula is in the yellow cells.

I hope this helps.

Kind regards
Amanda

Attached files...

datedif.xls

Excel tip:

Finding cells that have data restrictions

Click anywhere on the worksheet.
On the Edit menu, click Go To.
Click Special.
Click Data validation.
Click All.

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.