+ Reply to Thread
Results 1 to 5 of 5

Formula to calculate a field in payroll

  1. #1
    Registered User
    Join Date
    12-02-2022
    Location
    Karachi, Pakistan
    MS-Off Ver
    Office 365
    Posts
    4

    Formula to calculate a field in payroll

    Newbie excel user here,

    I am trying to create a formula that would automatically calculate the late deductions.
    The general rule is, if you're late for three days, one whole day's pay would be deducted. So basically, it would run as a multiple of 3.

    3 Lates = 1 whole day's deduction.
    4 Lates = 1 whole day's deduction.
    5 Lates = 1 whole day's deduction.
    6 Lates = 2 whole day's deduction.

    Like this.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,908

    Re: Formula to calculate a field in payroll

    try

    =INT((A2-1)/3)+1

    A2= number of "lates"
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    12-02-2022
    Location
    Karachi, Pakistan
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Formula to calculate a field in payroll

    Thank you.

    I tried =INT((A2-1)/3)+1 but there's a little problem, it is also returning 1 if the number of lates is 1 or 2. The point is if the number of lates is 1 or 2, it shouldn't be counted at all. Similarly, if there are four lates, it should still return 1 and same goes for 5.

    I initially used a formula, =IF(MOD(I8,3)=0,I8/3,0) but unless its a multiple of 3, its returning 0.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,908

    Re: Formula to calculate a field in payroll

    Try

    =INT(A2/3)

  5. #5
    Registered User
    Join Date
    12-02-2022
    Location
    Karachi, Pakistan
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Formula to calculate a field in payroll

    It worked!

    Thank you so much sir!

+ 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: 9
    Last Post: 07-26-2019, 03:55 PM
  2. Calculate Payroll by categories
    By yrndtn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-01-2018, 02:12 AM
  3. Replies: 2
    Last Post: 02-29-2016, 03:50 PM
  4. Replies: 1
    Last Post: 01-11-2016, 02:31 PM
  5. Payroll: Need help with a formula that can calculate 3 shift differentials and overtime.
    By DIGITALNICO in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-21-2012, 04:11 PM
  6. Replies: 3
    Last Post: 03-03-2012, 12:16 PM
  7. [SOLVED] How do you calculate payroll with tips?
    By sarah in forum Excel General
    Replies: 1
    Last Post: 08-11-2005, 06:05 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