Calculate Weekly Percentage

janarthenan

New Member
Joined
Jun 11, 2016
Messages
22
Hi Peter

Hopefully I am not being a pain and was wondering if you are able to help me with something else please.

I have created a training matrix and I need to calculate some percentages on a weekly basis.
The problem I am facing is that - last week my percentage was lets say 15, but when i enter a new date and get 20% this week, this also changes it for the last week.

Is there at all a way for the percentage to ignore values that are of a future date?

ABCDEFG
1Column1Start DateDesignationInfection controlFire Safety and AwarenessHealth and SafetyLeaver
2105/03/2018HSCWleaver
3205/02/2013SN28/08/201728/08/201728/08/2017
4301/08/2013HSCW26/09/201726/09/201726/09/2017
5426/09/2014SN13/11/201713/11/201713/11/2017
6519/04/2017HSCW24/05/201701/05/201724/05/2017leaver
7615/09/2017Admin23/01/201825/01/201823/01/2018
8713/09/2017HSCW14/09/201714/09/201714/09/2017
9822/10/2014OT14/09/201708/09/201708/09/2017
10917/11/2014HSCW23/08/201723/08/201724/08/2017
111007/08/2017MANAGER05/09/201705/09/201705/09/2017
121104/12/2017D.MANAGER05/12/201705/12/201705/12/2017
131204/11/2015HSCW11/09/201721/09/201721/09/2017leaver
141308/04/2016HSCW

<tbody>
</tbody>


This is what I am using currently:
CDEF
40Week EndingInfection controlFireSafeguarding Adults
4115-Jul-1893%93%93%
4229-Jul-1893%93%93%

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Stat. & Mand. Training

Worksheet Formulas
CellFormula
D41=COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Infection control],">="&[@[Week Ending]]-365,Tier1[Leaver],"")/COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Leaver],"")
E41=COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Fire Safety and Awareness],">="&[@[Week Ending]]-365,Tier1[Leaver],"")/COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Leaver],"")
F41=COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Health and Safety],">="&[@[Week Ending]]-365,Tier1[Leaver],"")/COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Leaver],"")
C42=C41+14
D42=COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Infection control],">="&[@[Week Ending]]-365,Tier1[Leaver],"")/COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Leaver],"")
E42=COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Fire Safety and Awareness],">="&[@[Week Ending]]-365,Tier1[Leaver],"")/COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Leaver],"")
F42=COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Health and Safety],">="&[@[Week Ending]]-365,Tier1[Leaver],"")/COUNTIFS(Tier1[Start Date],"<="&[@[Week Ending]],Tier1[Leaver],"")


<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

But the problem with this is If someone completes a training on the 30th of July, this changes the percentage for Week Ending 15th and the 29th of July.

So my objective is: If a staff has completed a training and he is NOT a leaver, and his start date is BEFORE the week ending date and the date of his training is LESS than a year (we do our training again every year) and if a new training date is entered this should not affect the previous week.

Thank You!
J
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,214,646
Messages
6,120,718
Members
448,986
Latest member
andreguerra

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