+ Reply to Thread
Results 1 to 11 of 11

Sum man years with hire dates available

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    Hammerfest
    MS-Off Ver
    Excel 2010
    Posts
    4

    Sum man years with hire dates available

    Hi,

    I want to sum the man years for five persons.

    Lets say cell A1:A6 is:
    A1:01.02.2003
    A2:04.05.2006
    A3:07.08.2009
    A4:10.11.2012
    A5:blank
    A6:02.01.1999

    =∑(YEAR(NOW())-YEAR(A1:A6))?

    How can this be written in excel? Cell A5 is blank.

    Franz
    Attached Files Attached Files
    Last edited by franzzo; 08-12-2013 at 08:42 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Sum man years with hire dates available

    Hi
    could be please be more specific ? Post a sample sheet showing desired results - Thx

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Sum man years with hire dates available

    =SUM(IF(A1:A6<>"",YEAR(TODAY())-YEAR(A1:A6)))

    Confirm Control+Shift+Enter
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  4. #4
    Registered User
    Join Date
    08-12-2013
    Location
    Hammerfest
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Sum man years with hire dates available

    That did not work on my spreadsheet. I have attatched it to this thread.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Sum man years with hire dates available

    Nothing attached

  6. #6
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Sum man years with hire dates available

    Why it did not work?

  7. #7
    Registered User
    Join Date
    08-12-2013
    Location
    Hammerfest
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Sum man years with hire dates available

    I dont know. The file is attatched now. It is my first post, sorry. Cell A5 should be empty.

  8. #8
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Sum man years with hire dates available

    This is array formula
    Confirm with COntrol+SHift+Enter not just Enter.
    (Press and hold Control+Shift then press Enter)

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Sum man years with hire dates available

    You have to put the insertion point in the formula bar before committing as described in post #8. The formula will then be between curly braces. Adding them manually will NOT do.

  10. #10
    Registered User
    Join Date
    08-12-2013
    Location
    Hammerfest
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Sum man years with hire dates available

    It worked! Thank you!

  11. #11
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Sum man years with hire dates available

    Quote Originally Posted by franzzo View Post
    It worked! Thank you!
    You are welcome

+ 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. Replies: 2
    Last Post: 05-30-2012, 10:53 AM
  2. Calculate number of years and months employed using hire date and.
    By TryingTime in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2006, 11:30 PM
  3. [SOLVED] Formula for dates-hire dates of employees
    By shunt in forum Excel General
    Replies: 2
    Last Post: 01-24-2006, 07:15 PM
  4. Replies: 2
    Last Post: 12-28-2005, 11:25 AM
  5. Link a list of employees with hire dates to a monthly schedule
    By lisabrmr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-17-2005, 04:06 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