Annual Leave Formula Help

CMcCormack1

New Member
Joined
Feb 24, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have a excel spreadsheet that acts as the ROTA for our team and there are 2 sections of which i need some assistance.
  1. We have a 'Summary Page' which is similar to the below table. This summary page, links to each sheet (one for each month) and automatically calculates how many time the letter 'H' has been entered and then subtracts it from the amount available at the start of the year. For E.g begin year with 24 days and take 3 days in january and 1 in February.
Employee NameJanuaryFebruaryTotal Remaining
Employee #13120
Employee #22418

What is needed is for this to also calculate the 'half day holidays' which is tracked using 1/2H on the monthly sheets. This is the current formula that is in place =COUNTIF(Jan!$B2:Z$2,"H").

Does anyone know how to edit that formula so it adds the 1/2H and logs them as 0.5 days on the summary page.


2. The 2nd is similar, however actually on the sheets itself, we have a key after all the members of the team in which it gives us a mini summary of each day of who is on Holiday/Training/Sick etc and its the same as above regarding adding the functionality of half day holidays in the form of 1/2H. This is the current formula in place. =COUNTIF(F2:F73,"H"). Same again where 'H' = 1 full day. 1/2H = 0.5 day.

Any assistance is welcome and appreciated.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIF(Jan!$B2:Z$2,"H")+COUNTIF(Jan!$B2:Z$2,"1/2H")*0.5
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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