+ Reply to Thread
Results 1 to 6 of 6

Calculate working days

  1. #1
    Forum Contributor
    Join Date
    03-11-2009
    Location
    duke's
    MS-Off Ver
    Excel 2007
    Posts
    112

    Calculate working days

    dear all

    now i am faceing a problem in calucating the wrking days.
    please check my attached file check the I coloum. I2= (H2-G2) but its showing error. help me to solove these problem

    i like to calucate Gratuity Prvosion of staff


    if staff worked 5 years their Gratuity Prvosion will be basic of 30 days.

    (1-5 YRS OF SERVICE) 30 days basic salary for a year
    (5-10 YRS OF SERVICE) 21 days basic salary for a year


    if staff worked more than 5 years ..first 5 years will be 30 days of basic and next 2 years will 21 days basic salary. ( but i metnioned more than 5 only)

    please help me to find out

    thank u in advance
    Attached Files Attached Files
    Last edited by raveepoojari; 09-12-2010 at 07:03 AM.
    " Jai ho"

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,522

    Re: Calculate working days

    Maybe, to start you off:

    =IF((YEAR(H2)-YEAR(G2))<=5,(YEAR(H2)-YEAR(G2))*C2/(30*30),"more than 5")

    Regards

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,609

    Re: Calculate working days

    This maybe.

    =IF(I2<=5*365, 30*I2*C2/365, (I2-5*365)*21+5*365*30)

  4. #4
    Forum Contributor
    Join Date
    03-11-2009
    Location
    duke's
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Calculate working days

    thank u for answer but i m getting value error in I column. so please help me to solove tat one first.

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Calculate working days

    Amend your formula in col I as =(H2-G2)*1 ( and format as number of course)

    Your date in col H is not a real date but text looking like date.
    Each time you refer to it you can multiply it by 1 or add 0 so it will become a date again.
    Last edited by arthurbr; 09-12-2010 at 03:26 PM.

  6. #6
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Calculate working days

    Hello raveepoojari
    As "ArthurBr" had said your date were stored as text, I changed this by placing a 1 in an empty cell, copy it special paste multiply it to the cells in text.
    Please have a look
    Regards
    Peter
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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