+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Subtracting date

  1. #1
    Registered User
    Join Date
    10-13-2008
    Location
    Turkey
    Posts
    1

    Subtracting date

    Hello All,

    long story short; I need to find a way to subtract pre-set dates. E.g:
    subtract 11.11.2006 from 13.10.08.

    11.11.2006 is the employement day and 13.10.08 is (was) today's date. I need to know how may months and years an employee has worked so far.

    Thanks in advance,
    Ad's

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi operat, and welcome to the forum.

    You can use Excel's DATEDIF function for this (see here for examples: http://www.cpearson.com/excel/datedif.aspx)

    In your case, something like this might work, where A1 has the hire date and B1 has '=TODAY()':

    =DATEDIF(A1,B1,"y")&" year(s), "&DATEDIF(A1,B1,"ym")&" month(s)"

    This will produce a result like:

    1 year(s), 11 month(s)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IF statement that looks at date values in 2 cells
    By LisaG in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-02-2008, 08:07 AM
  2. Advanced Timesheet
    By DaKohlmeyer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-28-2008, 04:49 PM
  3. Replies: 1
    Last Post: 12-15-2007, 09:15 AM
  4. Comparing one date to another
    By Rams in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-10-2007, 10:02 AM
  5. looping issues
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2007, 11:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1