Cap Value

Payrolltbeinc

New Member
Joined
Nov 12, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I want to make this monthly PTO sheet as accurate and clean as possible. I want to combine columns K-M. The cap and rate of accrual is set by an employee's years of service. Can you recommend a formula that will calculate the Available balance that includes the maximum value? Thank you.

PTO ACCRUALS_SEPT 2021.xlsx
CDEFGHIJKLM
1AnniversaryCurrent PRDOHYOS Hours Worked Used PTO BEGINNING BAL Accrued S/B AVAILABLE CAP BALANCE
28/6/202110/31/20218/6/20201.0013.75-10.4500000.343750010.79375080.0010.793750
36/24/202110/31/20216/24/200318.00160.00-23.2738609.232000032.505860240.0032.505860
43/6/202110/31/20213/6/20183.00198.75-116.6560717.6518750124.307946160.00124.307946
56/5/202110/31/20216/5/20192.00207.50-54.4692167.988750062.457966160.0062.457966
64/5/202110/31/20214/5/200516.00207.50160.00240.00000011.972750091.972750240.0091.972750
71/23/202110/31/20211/23/20201.00178.25-21.9438004.456250026.40005080.0026.400050
84/27/202110/31/20214/27/20201.00184.25-24.1625004.606250028.76875080.0028.768750
91/30/202110/31/20211/30/20183.0079.504.995.5050073.06075003.575757160.003.575757
103/1/202110/31/20213/1/199526.0064.00-26.4952763.692800030.188076240.0030.188076
114/27/202110/31/20214/27/20201.00213.25-31.9987845.331250037.33003480.0037.330034
129/2/202110/31/20219/2/20183.00163.00-7.1493506.275500013.424850160.0013.424850
139/19/202110/31/20219/19/20192.00200.00-10.6134237.700000018.313423160.0018.313423
1410/6/202010/31/202110/6/20201.00185.50-21.9375004.637500026.57500080.0026.575000
155/8/202110/31/20215/8/20174.0038.00-64.2739712.192600066.466571160.0066.466571
1610/4/202110/31/202110/4/2021-126.00--3.15000003.15000080.003.150000
1711/13/202010/31/202111/13/2020-170.00-8.9362504.250000013.18625080.0013.186250
1810/14/202110/31/202110/14/20147.000.75-2.8986490.04326902.941918240.002.941918
195/2/202110/31/20215/2/20174.00194.50-43.36592611.222650054.588576160.0054.588576
2010/15/202010/31/202110/15/20183.00136.75-(72.635800)5.2648750(67.370925)160.00-
218/1/202110/31/20218/1/200021.00183.25-23.69144510.573525034.264970240.0034.264970
226/6/202110/31/20216/6/20174.0087.25-86.1724185.034325091.206743160.0091.206743
234/29/202110/31/20214/29/20165.0012.00-15.5578080.692400016.250208240.0016.250208
246/10/202110/31/20216/10/20192.00--5.519133-5.519133160.005.519133
2510/26/202010/31/202110/26/199328.00206.75-137.81614711.9294750149.745622240.00149.745622
266/5/202110/31/20216/5/20192.00--9.032250-9.032250160.009.032250
279/12/202110/31/20219/12/20147.00204.00-54.98773011.770800066.758530240.0066.758530
283/25/202110/31/20213/25/2021-160.00-25.1187504.000000029.11875080.0029.118750
299/1/202110/31/20219/1/200714.00198.25-58.09111611.439025069.530141240.0069.530141
305/21/202110/31/20215/21/199922.00192.25-107.66656911.0928250118.759394240.00118.759394
3111/1/202010/31/202111/1/199921.0040.0037.3335.0162162.3080000(0.005784)240.00(0.005784)
327/12/202110/31/20217/12/20183.009.00-21.6626210.346500022.009121160.0022.009121
339/30/202110/31/20219/30/20138.00214.50-7.45952112.376650019.836171240.0019.836171
344/19/202110/31/20214/19/2021-186.50-62.6039344.662500067.26643480.0067.266434
359/8/202110/31/20219/8/20156.00227.50-48.99750513.126750062.124255240.0062.124255
368/6/202110/31/20218/6/20192.00--1.949280-1.949280160.001.949280
379/21/202110/31/20219/21/20183.00134.50-34.6369905.178250039.815240160.0039.815240
381/15/202110/31/20211/15/20183.00152.00-137.7208685.8520000143.572868160.00143.572868
399/16/202110/31/20219/16/2021-209.25--5.23125005.23125080.005.231250
407/2/202110/31/20217/2/200714.00195.50-210.64565011.2803500221.926000240.00221.926000
4110/29/202010/31/202110/29/20183.00137.7524.0042.0211585.303375023.324533160.0023.324533
426/3/202110/31/20216/3/20192.00168.50-21.0656506.487250027.552900160.0027.552900
436/21/202110/31/20216/21/200417.00195.00-83.63617011.251500094.887670240.0094.887670
444/15/202110/31/20214/15/20192.00--11.695695-11.695695160.0011.695695
456/12/202110/31/20216/12/20174.00164.00-143.7042989.4628000153.167098160.00153.167098
467/17/202110/31/20217/17/20201.00135.50-49.6375003.387500053.02500080.0053.025000
474/3/202110/31/20214/3/200615.00164.00-50.3650169.462800059.827816240.0059.827816
487/24/202110/31/20217/24/200516.00196.00-153.94248711.3092000165.251687240.00165.251687
493/7/202110/31/20213/7/201110.00130.25-141.2116687.5154250148.727093240.00148.727093
507/10/202110/31/20217/10/20174.00189.00-173.67490010.9053000184.580200160.00184.580200
OCT 21
Cell Formulas
RangeFormula
K2:K50K2=(J2+I2)-H2
L2:L50L2=IFS($F2<=1,80,$F2<=2,160,$F2<=3,160,$F2<=4,160,$F2>=4.55,240)
M21:M50,M2:M19M2=K2
J2:J17,J19:J50J2=IFS(F2<=1,(ROUND(G2*0.025,6)),(F2<=3),(ROUND(G2*0.0385,6)),(G2>=5),(ROUND(G2*0.0577,6)))
F2:F50F2=DATEDIF(E2,DATE(2021,10,31),"y")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:Q50Expression=EVEN(ROW())=ROW()textNO
A2:Q50Expression=ODD(ROW())=ROW()textNO
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Column M appears to be nothing more than a duplication of column K anyway so there is nothing to combine, it just needs to be deleted.
 
Upvote 0
Column M appears to be nothing more than a duplication of column K anyway so there is nothing to combine, it just needs to be deleted.
In most cases yes. for example row 50 the employee has reached his max value. I don't want to override the formula cells if I can find a solution around it.
PTO ACCRUALS_SEPT 2021.xlsx
EFGHIJKLNO
1DOHYOS Hours Worked Used PTO BEGINNING BAL Accrued S/B AVAILABLE CAP FNDTN EB VARIANCE
28/6/20201.0013.75-10.4500000.343750010.79375080.0010.793750-
36/24/200318.00160.00-23.2738609.232000032.505860240.0032.5045800.001280
43/6/20183.00198.75-116.6560717.6518750124.307946160.00124.3001950.007751
56/5/20192.00207.50-54.4692167.988750062.457966160.0054.4692167.988750
64/5/200516.00207.50160.00240.00000011.972750091.972750240.0082.5096029.463148
71/23/20201.00178.25-21.9438004.456250026.40005080.0026.400050-
84/27/20201.00184.25-24.1625004.606250028.76875080.0028.768750-
91/30/20183.0079.504.995.5050073.06075003.575757160.000.5150073.060750
103/1/199526.0064.00-26.4952763.692800030.188076240.0030.1875640.000512
114/27/20201.00213.25-15.9987845.331250021.33003480.0021.330034-
129/2/20183.00163.00-7.1493506.275500013.424850160.0013.4184930.006357
139/19/20192.00200.00-10.6134237.700000018.313423160.0018.3056240.007799
1410/6/20201.00185.50-21.9375004.637500026.57500080.0026.575000-
155/8/20174.0038.00-62.7829492.192600064.975549160.0064.2444670.731082
1610/4/2021-126.00--3.15000003.15000080.003.150000-
1711/13/2020-170.00-9.9362504.250000014.18625080.0014.186250-
1810/14/20147.000.75-2.8986490.04326902.941918240.002.941918-
195/2/20174.00194.50-43.36592611.222650054.588576160.0050.8465913.741985
2010/15/20183.00136.75-7.3642005.264875012.629075160.0012.6237430.005332
218/1/200021.00183.25-2.69144510.573525013.264970240.0013.0327360.232234
226/6/20174.0087.25-86.1724185.034325091.206743160.0089.5281411.678602
234/29/20165.0012.00-15.5578080.692400016.250208240.0016.2501120.000096
246/10/20192.00--5.519133-5.519133160.005.519133-
2510/26/199328.00206.75-137.81614711.9294750149.745622240.00149.3978160.347806
266/5/20192.00--9.032250-9.032250160.009.032250-
279/12/20147.00204.00-54.98773011.770800066.758530240.0066.7568980.001632
283/25/2021-160.00-25.1187504.000000029.11875080.0029.118750-
299/1/200714.00198.25-58.09111611.439025069.530141240.0069.1247110.405430
305/21/199922.00192.25-107.66656911.0928250118.759394240.00118.7578560.001538
3111/1/199921.0040.0037.3335.0162162.3080000(0.005784)240.00(0.006104)0.000320
327/12/20183.009.00-22.6626210.346500023.009121160.0023.0087710.000350
339/30/20138.00214.50-27.45952112.376650039.836171240.0039.8344550.001716
344/19/2021-186.50-62.6039344.662500067.26643480.0066.1086021.157832
359/8/20156.00227.50-48.99750513.126750062.124255240.0062.1224350.001820
368/6/20192.00--1.797978-1.797978160.001.797978-
379/21/20183.00134.50-17.6369905.178250022.815240160.0022.8099950.005245
381/15/20183.00152.00-129.7208685.8520000135.572868160.00135.5669400.005928
399/16/2021-209.25--5.23125005.23125080.005.231250-
407/2/200714.00195.50-210.64565011.2803500221.926000240.00221.9244360.001564
4110/29/20183.00137.7524.0042.0211585.303375023.324533160.0023.3191610.005372
426/3/20192.00168.50-21.0628826.487250027.550132160.0027.5435620.006570
436/21/200417.00195.00-83.63617011.251500094.887670240.0094.8861100.001560
444/15/20192.00--11.695695-11.695695160.0011.695695-
456/12/20174.00164.00-143.7042989.4628000153.167098160.00150.0119023.155196
467/17/20201.00135.50-49.6375003.387500053.02500080.0053.025000-
474/3/200615.00164.00-50.3650169.462800059.827816240.0059.827816-
487/24/200516.00196.00-153.94248711.3092000165.251687240.00165.2501190.001568
493/7/201110.00130.25-141.2116687.5154250148.727093240.00148.7260510.001042
507/10/20174.00189.00-160.00000010.9053000160.000000160.00160.000000-
OCT 21
Cell Formulas
RangeFormula
L2:L50L2=IFS($F2<=1,80,$F2<=2,160,$F2<=3,160,$F2<=4,160,$F2>=4.55,240)
J2:J17,J19:J50J2=IFS(F2<=1,(ROUND(G2*0.025,6)),(F2<=3),(ROUND(G2*0.0385,6)),(G2>=5),(ROUND(G2*0.0577,6)))
K2:K49K2=(J2+I2)-H2
F2:F50F2=DATEDIF(E2,DATE(2021,10,31),"y")
O2:O50O2=M2-N2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:Q50Expression=EVEN(ROW())=ROW()textNO
A2:Q50Expression=ODD(ROW())=ROW()textNO
 
Upvote 0
So what has happened to column M, Did it just grow legs and walk out of the sheet?

Based on what you've given us to work with so far, the best I can offer is =(J2+I2)-H2-N2 in K2. Remember the answer is only as good as the question.
 
Upvote 0
So what has happened to column M, Did it just grow legs and walk out of the sheet?

Based on what you've given us to work with so far, the best I can offer is =(J2+I2)-H2-N2 in K2. Remember the answer is only as good as the question.
My original question still remains unanswered. I want to write (or have someone write for me) a formula that will allow me to delete the redundant columns on my sheet. I want to eliminate the need for Column L because the formula in Column K has that information taking into consideration in the formula. The current version of this file makes it so I have to manually override the cell formula if their PTO hours earned has reached the max levels. Column M was my attempt to not loose the original calculation. My question is how can I accomplish what I want to do?
 
Upvote 0
Best guess
Excel Formula:
=MIN(J2+I2,LOOKUP(F2,{0,2,5},{80,160,240}))-H2-N2
 
Upvote 0
Best guess
Excel Formula:
=MIN(J2+I2,LOOKUP(F2,{0,2,5},{80,160,240}))-H2-N2
PTO ACCRUALS_SEPT 2021.xlsx
CDEFGHIJKLMNO
28/6/202110/31/20218/6/20201.0013.75-10.4500000.3437500-80.00-10.793750(10.793750)
OCT 21
Cell Formulas
RangeFormula
F2F2=DATEDIF(E2,DATE(2021,10,31),"y")
J2J2=IFS(F2<=1,(ROUND(G2*0.025,6)),(F2<=3),(ROUND(G2*0.0385,6)),(G2>=5),(ROUND(G2*0.0577,6)))
K2K2=MIN(J2+I2,LOOKUP(F2,{0,2,5},{80,160,240}))-H2-N2
L2L2=IFS($F2<=1,80,$F2<=2,160,$F2<=3,160,$F2<=4,160,$F2>=4.55,240)
M2M2=K2
O2O2=M2-N2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:Q50,A2:J2,L2:Q2Expression=EVEN(ROW())=ROW()textNO
A3:Q50,A2:J2,L2:Q2Expression=ODD(ROW())=ROW()textNO


Thank you for your suggestion. I really appreciate you taking the time to help me problem solve.
 
Upvote 0
Thank you for your suggestion. I really appreciate you taking the time to help me problem solve.
Does that mean it is giving you what is needed? If not then please repost your full example highlighting any rows where the result is wrong and enter the correct result should be next to it.
 
Upvote 0
Does that mean it is giving you what is needed? If not then please repost your full example highlighting any rows where the result is wrong and enter the correct result should be next to it.
No it didn't work. I pasted =MIN(J2+I2,LOOKUP(F2,{0,2,5},{80,160,240}))-H2-N2 into cell K2 and got the result of 0. I have created a new tab for when I have my Nov numbers and adjusted the formula in the YOS (Column F) to reflect the change in Column D. I copied the values from Column K and pasted the values on the new sheet Column I. I also updated Column C for those who had an anniversary. Maybe it will be easier for you to see what I am trying to do looking at a blank sheet. I want to utilize formulas more to cut down on the total number of columns used.

PTO ACCRUALS_SEPT 2021.xlsx
CDEFGHIJKLMN
1AnniversaryCurrent PRDOHYOS Hours Worked Used PTO BEGINNING BAL Accrued S/B AVAILABLE CAP Pay Rate Value
28/6/202111/30/20218/6/20201.0010.793750-10.79375080.00$ 13.85$ 149.49
36/24/202111/30/20216/24/200318.0032.505860#N/A#N/A240.00$ 45.00#N/A
43/6/202111/30/20213/6/20183.00124.307946-124.307946160.00$ 26.00$ 3,232.01
56/5/202111/30/20216/5/20192.0054.469216-54.469216160.00$ 16.35$ 890.57
64/5/202111/30/20214/5/200516.0091.972750#N/A#N/A240.00$ 40.00#N/A
71/23/202111/30/20211/23/20201.0026.400050-26.40005080.00$ 24.00$ 633.60
84/27/202111/30/20214/27/20201.0028.768750-28.76875080.00$ 25.00$ 719.22
91/30/202111/30/20211/30/20183.003.575757-3.575757160.00$ 27.00$ 96.55
103/1/202111/30/20213/1/199526.0030.188076#N/A#N/A240.00$ 19.10#N/A
114/27/202111/30/20214/27/20201.0021.330034-21.33003480.00$ 28.00$ 597.24
129/2/202111/30/20219/2/20183.0013.424850-13.424850160.00$ 20.35$ 273.20
139/19/202111/30/20219/19/20192.0018.313423-18.313423160.00$ 30.35$ 555.81
1410/6/202111/30/202110/6/20201.0026.575000-26.57500080.00$ 24.35$ 647.10
155/8/202111/30/20215/8/20174.0064.975549#N/A#N/A160.00$ 16.00#N/A
1610/4/202111/30/202110/4/2021-3.150000-3.15000080.00$ 18.00$ 56.70
1711/13/202111/30/202111/13/20201.0014.186250-14.18625080.00$ 23.00$ 326.28
1810/14/202111/30/202110/14/20147.002.9419180.04326902.985187240.00$ 19.35$ 57.76
195/2/202111/30/20215/2/20174.0054.588576#N/A#N/A160.00$ 28.35#N/A
2010/15/202111/30/202110/15/20183.0012.629075-12.629075160.00$ 20.85$ 263.32
218/1/202111/30/20218/1/200021.0013.264970#N/A#N/A240.00$ 31.00#N/A
226/6/202111/30/20216/6/20174.0091.206743#N/A#N/A160.00$ 21.00#N/A
234/29/202111/30/20214/29/20165.0016.250208#N/A#N/A240.00$ 25.55#N/A
246/10/202111/30/20216/10/20192.005.519133-5.519133160.00$ 18.35$ 101.28
2510/26/202111/30/202110/26/199328.00149.745622#N/A#N/A240.00$ 32.00#N/A
266/5/202111/30/20216/5/20192.009.032250-9.032250160.00$ 17.00$ 153.55
279/12/202111/30/20219/12/20147.0066.758530#N/A#N/A240.00$ 23.00#N/A
283/25/202111/30/20213/25/2021-29.118750-29.11875080.00$ 19.00$ 553.26
299/1/202111/30/20219/1/200714.0069.530141#N/A#N/A240.00$ 30.00#N/A
305/21/202111/30/20215/21/199922.00118.759394#N/A#N/A240.00$ 37.00#N/A
3111/1/202111/30/202111/1/199922.00(0.005784)#N/A#N/A240.00$ 34.00#N/A
327/12/202111/30/20217/12/20183.0023.009121-23.009121160.00$ 20.00$ 460.18
339/30/202111/30/20219/30/20138.0039.836171#N/A#N/A240.00$ 25.35#N/A
344/19/202111/30/20214/19/2021-67.266434-67.26643480.00$ 26.00$ 1,748.93
359/8/202111/30/20219/8/20156.0062.124255#N/A#N/A240.00$ 27.00#N/A
368/6/202111/30/20218/6/20192.001.797978-1.797978160.00$ 27.00$ 48.55
379/21/202111/30/20219/21/20183.0022.815240-22.815240160.00$ 20.35$ 464.29
381/15/202111/30/20211/15/20183.00135.572868-135.572868160.00$ 40.00$ 5,422.91
399/16/202111/30/20219/16/2021-5.231250-5.23125080.00$ 22.00$ 115.09
407/2/202111/30/20217/2/200714.00221.926000#N/A#N/A240.00$ 35.00#N/A
4110/29/202111/30/202110/29/20183.0023.324533-23.324533160.00$ 28.00$ 653.09
426/3/202111/30/20216/3/20192.0027.550132-27.550132160.00$ 22.00$ 606.10
436/21/202111/30/20216/21/200417.0094.887670#N/A#N/A240.00$ 33.00#N/A
444/15/202111/30/20214/15/20192.0011.695695-11.695695160.00$ 13.85$ 161.99
456/12/202111/30/20216/12/20174.00153.167098#N/A#N/A160.00$ 31.00#N/A
467/17/202111/30/20217/17/20201.0053.025000-53.02500080.00$ 25.35$ 1,344.18
474/3/202111/30/20214/3/200615.0059.827816#N/A#N/A240.00$ 31.00#N/A
487/24/202111/30/20217/24/200516.00165.251687#N/A#N/A240.00$ 38.00#N/A
493/7/202111/30/20213/7/201110.00148.727093#N/A#N/A240.00$ 32.00#N/A
507/10/202111/30/20217/10/20174.00160.000000#N/A160.000000160.00$ 26.00$ 4,160.00
NOV 21
Cell Formulas
RangeFormula
M3M3=ROUND(1800/40,2)
J2:J17,J19:J50J2=IFS(F2<=1,(ROUND(G2*0.025,6)),(F2<=3),(ROUND(G2*0.0385,6)),(G2>=5),(ROUND(G2*0.0577,6)))
M31M31=ROUND(1360.154/40,2)
M38M38=ROUND(1600/40,2)
K2:K49K2=(J2+I2)-H2
F2:F50F2=DATEDIF(E2,DATE(2021,11,30),"y")
L2:L50L2=IFS($F2<=1,80,$F2<=2,160,$F2<=3,160,$F2<=4,160,$F2>=4.55,240)
N2:N50N2=ROUND(M2*K2,2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:N50Expression=EVEN(ROW())=ROW()textNO
A2:N50Expression=ODD(ROW())=ROW()textNO
 
Upvote 0
Maybe it will be easier for you to see what I am trying to do looking at a blank sheet.
It will be easier to see if you could simply do as I asked
If not then please repost your example highlighting any rows where the result is wrong and enter the correct result next to it.
When you posted your second example in post 3, I had assumed (due to lack of clarity) that column O was showing the results that were expected.
a formula that will calculate the Available balance that includes the maximum value?
Which is what the formula that I suggested takes into consideration. If the figures in column N bear no relevance then try removing that part of the equation from the formula and using
Excel Formula:
=MIN(J2+I2,LOOKUP(F2,{0,2,5},{80,160,240}))-H2
instead.
If that is still not what you want then please do as I asked and repost your example with the formula filled down the column and add a column showing the expected results in rows where the formula is not correct.
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,593
Members
449,038
Latest member
Arbind kumar

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