Help With Helper Cells

zendog1960

Active Member
Joined
Sep 27, 2003
Messages
459
Office Version
  1. 2019
Platform
  1. Windows
Good Morning,

I have pasted the spreadsheet in question. In the far-right, white area I have the factors for how much vacation time an employee gets each week. What I need to happen is, for example, the first 2 weeks in May the employee was in their 2nd year. However, the week of the 15th they will then be in their 3rd year and the factor changes. The Employee would change the cell below B4 to reflect the change. So here's the question: How can I stop the change from 2 to 3 years and not have it reflect previous dates but do affect all future dates?

I get by with excel pretty good but this one baffles me. Any and all help would be extremely appreciated.

New VaCay Sick log.xlsx
BCDEFGHIJKLMNOPQ
4EmployedEmployee2021Sick Carry OverVacation Carry Over
5228.7030.78
6StipendPaydayWeek Ending…Total HoursHrs SickHrs VacationHrs HolidayTotal Hours WorkedFactorSick BalanceFactorVacation BalanceEmployedVacation per YRFactor
7P1-May40401.3330.031.5432.321401.54
88-May40401.3331.371.5433.862401.54
9SP15-May408321.0724.431.5435.403451.73
1022-May     4501.92
11P29-May     5501.92
12 6602.31
Sick & Vacation Time
Cell Formulas
RangeFormula
I7:I11I7=IF(E7<>"",E7-(SUM(F7:H7)),"")
J7:J11J7=IFERROR(I7/30,"")
K7K7=IF(E7<>"",IF(E7=0,K5,(J7+K5)-F7),"")
K8:K11K8=IF(E8<>"",IF(E8=0,K7,(J8+K7)-F8),"")
D8:D11D8=D7+7
N7N7=IFERROR(IF(G7=0,$N5+M7,N5-G7),"")
N8:N11N8=IFERROR(IF(G8=0,N7+M8,N7-G8),"")
M7:M12M7=IF(E7="","",DGET($O$6:$Q$12,3,$B$4:$D$5))
Q7:Q12Q7=$P7/$R$7
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
How about putting the start date in B5 & using this
+Fluff 1.xlsm
BCDEFGHIJKLMNOPQ
4EmployedEmployee2021Sick Carry OverVacation Carry Over
514/05/201828.730.8
6StipendPaydayWeek Ending…Total HoursHrs SickHrs VacationHrs HolidayTotal Hours WorkedFactorSick BalanceFactorVacation BalanceEmployedVacation per YRFactor
7P01/05/202140401.3330.031.5432.321401.54
808/05/202140401.3331.371.5433.862401.54
9SP15/05/2021408321.0724.431.7335.593451.73
1022/05/2021     4501.92
11P29/05/2021     5501.92
12 6602.31
Summary
Cell Formulas
RangeFormula
I7:I11I7=IF(E7<>"",E7-(SUM(F7:H7)),"")
J7:J11J7=IFERROR(I7/30,"")
K7K7=IF(E7<>"",IF(E7=0,K5,(J7+K5)-F7),"")
K8:K11K8=IF(E8<>"",IF(E8=0,K7,(J8+K7)-F8),"")
D8:D11D8=D7+7
N7N7=IFERROR(IF(G7=0,$N5+M7,N5-G7),"")
N8:N11N8=IFERROR(IF(G8=0,N7+M8,N7-G8),"")
M7:M12M7=IF(E7="","",VLOOKUP(DATEDIF($B$5,D7,"y"),$O$7:$Q$12,3,0))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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