+ Reply to Thread
Results 1 to 3 of 3

Formula to calculate bases on Years and Months

  1. #1
    Registered User
    Join Date
    01-23-2013
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    5

    Formula to calculate bases on Years and Months

    I need a formula to calculate the number of hours earned based on the years and months of service. k5 contains the years of service in years and months. ie. 4 years, 2 months

    =IF(TODAY()>=DATE(2015,2,1),IF(AND(k5<=4,S7>=0),8,IF(AND(k5>=5,k5<=9),10,IF(AND(k5>=10),12))))

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Formula to calculate bases on Years and Months

    hi eminter,

    can you upload a sample of your workbook? this request is confusing without it.

    what is the point of your first if statement "if(today()>-date(2015,2,1)... you already know today is greater than 2/1/2015, what's the point of performing that check?
    Hope I could help - if your post has been solved don't forget to mark it as such.

    Clicking the * below is a great way to say thanks!

    "Drowning in 10 feet of water isn?t any different than drowning in a million feet. And if you can swim, it doesn?t matter how deep the ocean is. At some level, once you realize you?re in water that?s too deep to stand, you have to have a very different approach," - Joi Ito

  3. #3
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Formula to calculate bases on Years and Months

    What is the start date?
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

+ 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: 8
    Last Post: 02-20-2014, 05:46 PM
  2. Replies: 11
    Last Post: 01-13-2013, 09:40 AM
  3. Replies: 1
    Last Post: 01-19-2011, 04:50 AM
  4. Excel 2007 : Calculate years, months, day
    By helpme16 in forum Excel General
    Replies: 10
    Last Post: 01-18-2011, 12:34 AM
  5. [SOLVED] how to calculate years, months by using one formula
    By srinivasa rao in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-15-2005, 04:06 AM

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