+ Reply to Thread
Results 1 to 3 of 3

Need help correcting conditional formula

  1. #1
    Registered User
    Join Date
    01-27-2021
    Location
    Bangladesh
    MS-Off Ver
    2016
    Posts
    1

    Need help correcting conditional formula

    Existing Calculation:
    * Service Year goes up when service lenght exceed 6th month of a certain year.
    for example,
    if service length is, say, 5 year 5 months 29 days; then service year is still 5 [Row 2]
    but if service length is, 5 year 6 months 1 day; then service year goes up to 6 [Row 3]
    * When Service year is equal to or greater than 10, number of Gratuity is 1.5 times of service year
    For example,
    when service year=9; No. of gratuity=9 [Row 4]
    but, when service year=10; No. of gratuity=15 [Row 5]

    Problem
    * Service Year goes up when service lenght is 0 (zero) month of a certain year
    for example, When service length is 6 year 0 month 0 days; then service year turns into 7. [Row 6] which should remain 6.

    Required Calculation:
    Service year calculation need an exception only for the '9th year'
    Service year '9' will turn into '10' only if service length exceeds 12th month of 9th year. that is, service year 9 will go up to 10 after serving full 10 year. not after 9th year 6th month.
    Attached Files Attached Files
    Last edited by nadimtmbd; 01-27-2021 at 05:33 AM. Reason: Solved

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Need help correcting conditional formula

    try below formula in AD2, copy and paste towards down
    =DATEDIF($F2,$Z2+1,"Y")+IF(AND(DATEDIF($F2,$Z2+1,"YM")>=6,DATEDIF($F2,$Z2+1,"Y")<>9),1,0)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Need help correcting conditional formula

    Sevice year, AD2
    =IF(AB2=9,9,AB2+IF(AC2>=6,1,0))

    AE2
    =$AD2*IF($AD2>=10,1.5,1)
    Attached Files Attached Files
    Quang PT

+ 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: 7
    Last Post: 05-20-2013, 01:05 PM
  2. Excel 2007 : need help correcting a formula
    By berk21 in forum Excel General
    Replies: 2
    Last Post: 03-08-2010, 07:36 PM
  3. [SOLVED] need help in correcting the formula
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  4. need help in correcting the formula
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  5. need help in correcting the formula
    By azmi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. need help in correcting the formula
    By azmi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] need help in correcting the formula
    By azmi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. [SOLVED] need help in correcting the formula
    By azmi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

Tags for this Thread

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