+ Reply to Thread
Results 1 to 7 of 7

Payroll sreadsheet

  1. #1
    Registered User
    Join Date
    10-20-2020
    Location
    KENNER,LA
    MS-Off Ver
    365
    Posts
    4

    Payroll sreadsheet

    looking for help with formula for payroll sheet, not sure if isvalue or istext will help. We works shift work which consist of 17 hour one day and 7 the next morning. I was able to put a regular total hours example sheet attached which was 113 hours. what im trying to do is fill out colums T6,U6,V,X.Y.Z AA,AB based on on the difference from regular minus if employee also has acting, overtime, sick, vation or other.

    Exmaple sheet i worked total 113 hour but 24 was vacation (V) and would like column AA show 24 but pulling if employee chooses V in row 5. It would be the same formula for example is A in row 5 it would be total of 89

    Please let me know if you can help or add formula.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365
    Posts
    1,249

    Re: Payroll sreadsheet

    Maybe this in cell S6 and copy across. Watch for merged cells in the way!
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!

  3. #3
    Registered User
    Join Date
    10-20-2020
    Location
    KENNER,LA
    MS-Off Ver
    365
    Posts
    4

    Re: Payroll sreadsheet

    thanks would this change if i wanted on V or A or Even H for each field

  4. #4
    Registered User
    Join Date
    10-20-2020
    Location
    KENNER,LA
    MS-Off Ver
    365
    Posts
    4

    Re: Payroll sreadsheet

    that only gave me a zero value not 113

  5. #5
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365
    Posts
    1,249

    Re: Payroll sreadsheet

    You're welcome.
    You get a zero in S6, because the SUMIF is adding up hours as per the letters in row 5. Since there's no R in range B5:R5, result is zero.
    Make sure the titles in range S4:AC4 are the same as listed in A13:A20, so the VLOOKUP works properly.
    Please check how it works in file attached.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-20-2020
    Location
    KENNER,LA
    MS-Off Ver
    365
    Posts
    4

    Re: Payroll sreadsheet

    thanks fro the help, it worked for R,A,H,

    But did not add for AOT,S Acting
    i highlight green (see excel rev.1)

    Also tryng to understand formula

    Regular formula
    =SUMIF($B$5:$R$5,VLOOKUP(S$4,$A$13:$C$20,3,0),$B$6:$R$6)
    Acting formula
    =SUMIF($B$5:$R$5,VLOOKUP(T$4,$A$13:$C$20,3,0),$B$6:$R$6)

    What part is formula is usinh C13 (regular hours) or C14 Acting (acting hours)

    Thanks
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365
    Posts
    1,249

    Re: Payroll sreadsheet

    You're welcome. Thanks for the feedback.

    The part of formula using C13, C14, etc, is the VLOOKUP.
    As you have acronyms in range B5:R5 and the corresponding texts in range S4:AC4, I VLOOKUP your table in range A13:C20 to get the corresponding acronym into the SUMIF.
    So, in the Acting formula =SUMIF($B$5:$R$5,VLOOKUP(T$4,$A$13:$C$20,3,0),$B$6:$R$6), the VLOOKUP(T$4,$A$13:$C$20,3,0) part stands for "A", the result of this VLOOKUP.
    But, as I said in post #5, the titles in range S4:AC4 MUST be the same as listed in A13:A20.
    Likewise, the acronyms in range B5:R5 MUST be the same as listed in range C13:C20.

    The formula was not working for AOT and SOT because the texts were not the same in ranges S4:AC4 and A13:A20, so I made this correction.
    Also, the S was returning zero, because in cell M5 it was "S", but in cell C20 it was "S " (with a space).
    The Acting I in cell AC4 is not listed in your table A13:C20, so no result for it.

    Please check file.
    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)

Similar Threads

  1. Replies: 9
    Last Post: 07-26-2019, 03:55 PM
  2. Need to find info in sreadsheet that meets two criteria - help please!
    By Altna in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-20-2013, 07:11 AM
  3. selective data recording from another sreadsheet
    By omer123456 in forum Excel General
    Replies: 0
    Last Post: 08-24-2011, 01:15 PM
  4. [SOLVED] Adding payroll stubs payroll calculator
    By Sable in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-05-2006, 12:40 PM
  5. increasing numbers in sreadsheet
    By luminore in forum Excel General
    Replies: 2
    Last Post: 02-06-2006, 10:20 AM
  6. VBs scripting for calling excel sreadsheet
    By Patrick in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-21-2005, 03:05 PM
  7. [SOLVED] Open a .xls in micrsoft works sreadsheet
    By Claire in forum Excel General
    Replies: 2
    Last Post: 02-18-2005, 08: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