Vlookup

Robert Wyatt

Board Regular
Joined
Jul 15, 2012
Messages
97
Office Version
  1. 2019
Platform
  1. Windows
I working up a Timesheet for bi-weekly time what I trying to do is where I have Est. Yearly Gross Wages are at the bottom right-hand side of the sheet I would like for it to figure the Est figure with the remaining pay period. Say pay period one is passed I would like it to figure the second pay period to the last. I have 26 pay periods I would like for each time I save a timesheet it would figure the next pay period to the last each time. Is there any way to do this?

New Blank Payroll Keeper 2024.xlsm
BCDEFGHIJKLM
19Weekday DateDescriptionDaysSwingsGraveyardsWorked HoursRegular HoursOvertime HoursPTO Hours
20Time InTime OutTime InTime OutTime InTime Out
22Fri 12/15Regular11:55 PM5:55 AM6.006.00-
23Sat 12/16Regular11:55 PM6:55 AM7.007.00-
24Sun 12/17Off---
25Mon 12/18Off---
26Tue 12/19Stand In11:30 PM8:00 AM8.508.50-
27Wed 12/20Stand In11:30 PM8:00 AM8.508.50-
28Thu 12/21Off---
29Total First Week Hours:30.0030.00--
30
31Weekday DateDescriptionDaysSwingsGraveyardsWorked HoursRegular HoursOvertime HoursPTO Hours
32Time InTime OutTime InTime OutTime InTime Out
34Fri 12/22Regular11:55 PM5:55 AM6.006.00-
35Sat 12/23Regular11:55 PM6:55 AM7.007.00-
36Sun 12/24Off---
37Mon 12/25Off---
38Tue 12/26Stand In11:30 PM8:00 AM8.508.50-
39Wed 12/27Stand In11:30 PM8:00 AM8.508.50-
40Thu 12/28Off---
41Total First Week Hours:30.0030.00--
42Total Bi-Weekly Hours60.00
43
44-
45
46
47
48DescriptionRateHoursThis PeriodSocial Security Monthly & Yearly Information
49Declared Tip Appliance$0.9826.0025.48Allowed Monthly Gross$ 1,770.00
50Regular Hours$11.7526.00305.50Estimated Monthly Gross$ 1,596.99
51Stand In Hours$13.7534.00467.52Differerance$ 173.01
52PTO Hours$11.75--Allowed Yearly Gross$ 21,240.00
53Overtime Hours$17.63--Estimated Yearly Gross$ 20,760.92
54Training Hours$11.75--Differerance$ 479.08
55Meeting Hours$11.75--
56Total Gross Earnings:798.50Year To Date Gross Earnings$ -
Payroll Keeper
Cell Formulas
RangeFormula
J34:J40,J22:J28J22=ROUND(IF((OR(D22="",E22="")),0,IF((E22<D22),((E22-D22)*24)+24,(E22-D22)*24))+IF((OR(F22="",G22="")),0,IF((G22<F22),((G22-F22)*24)+24,(G22-F22)*24))+IF((OR(H22="",I22="",)),0,IF((I22<H22),((I22-H22)*24)+24,(I22-H22)*24)),2)
K34:K40,K22:K28K22=J22-L22
L22:L28L22=ROUND(MAX(IF('OT Work Sheet'!$C$5,MAX(0,SUM(K$21:K21)+J22-'OT Work Sheet'!$B$6),0),IF('OT Work Sheet'!$C$5,IF(J22>'OT Work Sheet'!$B$6,J22-'OT Work Sheet'!$B$6,0),0)),2)
B22B22=IF(ISBLANK(C22)," ",$D$14)
B23B23=IF(ISBLANK(C23)," ",$D$14+1)
B24B24=IF(ISBLANK(C24)," ",$D$14+2)
B25B25=IF(ISBLANK(C25)," ",$D$14+3)
B26B26=IF(ISBLANK(C26)," ",$D$14+4)
B27B27=IF(ISBLANK(C27)," ",$D$14+5)
B28B28=IF(ISBLANK(C28)," ",$D$14+6)
J41:M41,J29:M29J29=SUM(J22:J28)
L34:L40L34=ROUND(MAX(IF('OT Work Sheet'!$C$5,MAX(0,SUM(K$33:K33)+J34-'OT Work Sheet'!$B$6),0),IF('OT Work Sheet'!$C$5,IF(J34>'OT Work Sheet'!$B$6,J34-'OT Work Sheet'!$B$6,0),0)),2)
B34B34=IF(ISBLANK(C34)," ",$D$14+7)
B35B35=IF(ISBLANK(C35)," ",$D$14+8)
B36B36=IF(ISBLANK(C36)," ",$D$14+9)
B37B37=IF(ISBLANK(C37)," ",$D$14+10)
B38B38=IF(ISBLANK(C38)," ",$D$14+11)
B39B39=IF(ISBLANK(C39)," ",$D$14+12)
B40B40=IF(ISBLANK(C40)," ",$D$14+13)
D42D42=SUMIFS(J22:J40,C22:C40,"Regular")+SUMIFS(J22:J40,C22:C40,"Stand In")+SUMIFS(M22:M40,C22:C40,"FMLA")+SUMIFS(M22:M40,C22:C40,"PTO")+SUMIFS(M22:M40,C22:C40,"Vacation")+SUMIFS(F44,C44,"Training")+SUMIFS(F44,C44,"Meeting")
F44F44=ROUND(IF((OR(D44="",E44="")),0,IF((E44<D44),((E44-D44)*24)+24,(E44-D44)*24)),2)
E49E49=SUMIFS(J22:J40,C22:C40,"Regular")
E50E50=SUMIFS(J22:J40,C22:C40,"Regular")
E51E51=SUMIFS(J22:J40,C22:C40,"Stand In")
D52D52=ROUND(SUM(D50),2)
E52E52=SUMIFS(M22:M40,C22:C40,"PTO")+SUMIFS(M22:M40,C22:C40,"FMLA")+SUMIFS(M22:M40,C22:C40,"Vacation")
D53D53=ROUND(SUM(D50*1.5),2)
E53E53=ROUND(SUM(L22:L28,L34:L40),2)
D54D54=ROUND(SUM(D50),2)
E54E54=SUMIFS(F44,C44,"Training")
D55D55=ROUND(SUM(D50),2)
E55E55=SUMIFS(F44,C44,"Meeting")
L49L49=IF(ISBLANK(D14)," ",L52/12)
L50L50=IF(ISBLANK(D14)," ",F56*2)
L51L51=IF(ISBLANK(D14)," ",MAX(L49:L50)-MIN(L49:L50))
L52L52=IF(ISBLANK(D14)," ",VLOOKUP(I52,Settings!S1:T1,2,0))
L53L53=IF(ISBLANK(D14)," ",F56*26)
L54L54=IF(ISBLANK(D14)," ",MAX(L52:L53)-MIN(L52:L53))
F49:F55F49=D49*E49
F56F56=SUM(F49:G55)
Cells with Data Validation
CellAllowCriteria
C22:C28List=Settings!$I$2:$I$8
C34:C40List=Settings!$I$2:$I$8
C44List=Settings!$K$2:$K$4
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
@Robert Wyatt , is there a particular reason you want to mix your data entry with the reporting?
Having a separate data page (start/end times/dates), and then another page to display your your calculations may make your problem easier to solve.

Also, is this one pay period? How many hours does the forum assume is a regular work week? What weeks is going to be the final week of the year? Is the last day of the year the ACTUAL last day of the calculations, or is the end of the pay period that the last day of the year is in, or is it the last day of the pay period that will have the last payday in the year? Please give more data.
 
Upvote 0
I work 30 hours a week 60 hours bi-weekly. Paid bi-weekly. I'm on Social Security is why I trying to make sure I don't go over the allowed limit of 21,240.00 a year. My time starts Fridays and ends on Thursdays. I clock in at 11:55 Pm and Clock out at 05:55 on Saturdays, I clock out at 06:55 am on Sundays. On Tuesdays and Wednesdays, I clock in at 11:30 pm and clock out at 08:00 am. My last pay period at the end of the year will be 12/14/2023. I went from 40 hours a week to 30 hours a week, but I'm still considered full-time.
 
Upvote 0
@Robert Wyatt , is there a particular reason you want to mix your data entry with the reporting?
Having a separate data page (start/end times/dates), and then another page to display your your calculations may make your problem easier to solve.

Also, is this one pay period? How many hours does the forum assume is a regular work week? What weeks is going to be the final week of the year? Is the last day of the year the ACTUAL last day of the calculations, or is the end of the pay period that the last day of the year is in, or is it the last day of the pay period that will have the last payday in the year? Please give more data.
I have 26 Pay Periods Time starts On Fridays and goes through Thursdays. I work 30 hours a week, I went from 40 hours to 30 hours cause I retired, but I still, work receiving Social Security. I'm still considered full-time at 30 hours a week. That way I can still get my Insurance through the Employer. I can't go over 21,240.00 a year or they will hold 3.00 dollars for every dollar I go over. That is why I am trying to fix up a program to keep a watch on it.
 
Upvote 0
I have figured it out, and have it working. I have fixed it to save it like my YTD pay stub. Thanks for all the help.
 
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top