PTO Formula not working

Robert Wyatt

Board Regular
Joined
Jul 15, 2012
Messages
84
Office Version
  1. 2019
Platform
  1. Windows
I'm including a cop of my file sorry I couldn't get the XL2BB to work I'm hoping someone can tell me where I'm going wrong with the formula. Let me say thought what I'm trying to do is have it show o until after I have been working for three years. then start recording. the formula I have installed just doesn't seem to be working right. any help would be much appreciated. never mind can't get my file to upload either
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Trying this one more time. I'm including a cop of my file sorry I couldn't get the XL2BB to work I'm hoping someone can tell me where I'm going wrong with the formula. Let me say thought what I'm trying to do is have it show o until after I have been working for three years. then start recording. the formula I have installed just doesn't seem to be working right. any help would be much appreciated.

PTO Accrual for Walmart.xlsx
ABCDEFGHIJKLMNO
1UNPROTECTED PTOPROTECTED PTOTOTALPROTECTED PTOUNPROTECTED PTOTOTAL
2Original Date of HireYears of ServiceTime To Earn 1 HourMax Hours/YearTime To Earn 1 HoursMax Hours/YearTotalYears of ServiceTime To Earn 1 HoursMax Hours/yearMax Hours/yearMax Hours/YearMax Hours/year
3      0-243.3348485648
433048485648
54-63048485648
6DescriptionCount7-103048485648
7Total Hours Accrual-11-1530484856104
8Total Paid Time Off Hours Used-16-1930484856104
920+30484896144
10
11
12Pay Period NumberPay DateTotal HoursPTO SickVacationHours Accrual Balance
13Roll Over Balance:0.00
14  
15
16
17
18
19
20
21
Sheet1
Cell Formulas
RangeFormula
B3B3=IF(A3="","",(DATEDIF(A3,TODAY(),("Y"))))
C3C3=IF(B3="","",LOOKUP(B3,J3:J9,K3:K9))
D3D3=IF(B3="","",LOOKUP(B3,J3:J9,L3:L9))
E3E3=IF(B3="","",LOOKUP(B3,J3:J9,M3:M9/250))
F3F3=IF(B3="","",LOOKUP(B3,J3:J9,N3:N9))
G3G3=IF(A3="","",VLOOKUP(H13+100,H13:H39,1))
F7F7=SUM(G14:G39)
F8F8=SUM(D14:D39)
G14G14=IF(C14="","",LOOKUP($B$3,J3:J9,$M$3:$M$9/250*C14))
H14H14=IF(C14="","",IF(AND(ISBLANK(A14:D14)), " - ",IF(H13+G14-D14-E14-F14<$D$3,H13+G14-D14-E14-F14,144)))
 
Upvote 0
Some ideas that may help.
What formulas are not working for you?
I edited the Lookup table; please check edits.

T202312a.xlsm
ABCDEFGHIJKLMNO
1UNPROTECTED PTOPROTECTED PTOTOTALPROTECTED PTOUNPROTECTED PTOTOTAL
2Original Date of HireYears of ServiceTime To Earn 1 HourMax Hours/YearTime To Earn 1 HoursMax Hours/YearTotalYears of ServiceTime To Earn 1 HoursMax Hours/yearMax Hours/yearMax Hours/YearMax Hours/year
301-01-051830480.19256043.3348485648
433048485648
51530484856104
6j
Cell Formulas
RangeFormula
B3B3=IF(A3="","",(DATEDIF(A3,TODAY(),("Y"))))
C3C3=IF(B3="","",LOOKUP(B3,J3:J7,K3:K7))
D3D3=IF(B3="","",LOOKUP(B3,J3:J7,L3:L7))
E3E3=IF(B3="","",LOOKUP(B3,J3:J7,M3:M7/250))
F3F3=IF(B3="","",LOOKUP(B3,J3:J7,N3:N7))
 
Upvote 0
when I put in the Hire date it shows #N/A instead of 0 I would like it to have a 0 not #N/A. and I'm not sure if about the Time to earn 1 hour is correct I not sure on how to figure that out when time to ear 1 hour is 43.33 or 30.
 
Upvote 0
1. "when I put in the Hire date it shows #N/A instead of 0 I would like it to have a 0 not #N/A"
Please clarify your question. N.B. You can post the example below into a clean sheet. Click the icon below the f(x) in the heading, move to your sheet, and paste into cell A1. Review the formulas with Excel's Formulas Evaluate Formula.

2. " . and I'm not sure if about the Time to earn 1 hour is correct I not sure on how to figure that out when time to ear 1 hour is 43.33 or 30."
Is the Lookup table correct? Please review and make appropriate edits. Years service 1 or 2 43.33 or years service 3 or more 30.
What information do you want in E3 and E4?

You can use the lookup formula that you prefer. My example shows Lookup and Vlookup.

T202312a.xlsm
ABCDEFGHIJKLMNO
1UNPROTECTED PTOPROTECTED PTOTOTALPROTECTED PTOUNPROTECTED PTOTOTAL
2Original Date of HireYears of ServiceTime To Earn 1 HourMax Hours/YearTime To Earn 1 HoursMax Hours/YearTotalYears of ServiceTime To Earn 1 HoursMax Hours/yearMax Hours/YearMax Hours/year
301-Jan-21243.3348??5648143.33485648
401-Jan-002330.0048??56104330485648
515304856104
6j
Cell Formulas
RangeFormula
B3:B4B3=IF(A3="","",DATEDIF(A3,TODAY(),"y"))
C3C3=IF(B3="","",LOOKUP(B3,J3:J7,K3:K7))
D3D3=IF(B3="","",LOOKUP(B3,J3:J7,L3:L7))
C4:D4,F4:G4C4=IF($A4="","",VLOOKUP($B4,$J3:$O5,COLUMN()-1,1))
F3F3=IF(B3="","",LOOKUP(B3,J3:J7,N3:N7))
G3G3=IF(B3="","",LOOKUP(B3,J3:J7,O3:O7))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,089
Messages
6,123,058
Members
449,091
Latest member
ikke

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