Leave Calculation

nbkjytr

New Member
Joined
Dec 11, 2021
Messages
18
Office Version
  1. 2013
Platform
  1. Windows
Hello Everyone,
I am sorry for bothering you all, my excel knowledge is very limited.
In my company we have multiple type of leaves called as Privilaged Leave, Sick Leave, Marriage Leave, Compassionate Leave, MAT AND PAT leave and many more. For the leave tracker I want all the other leaves to be considered as Other except only Privileged and Sick Leave. How should I formulate this so I can get the overall counts for all other leaves all together except PL and SL.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try:
Book1
ABCD
1FICTICIOUS DATATRACKERCOUNT
2Privileged LeavePL5
3Sick LeaveSL4
4Marriage LeaveOther5
5Compassionate LeaveTOTAL14
6MAT
7PAT
8Privileged Leave
9Sick Leave
10Privileged Leave
11Privileged Leave
12Privileged Leave
13Sick Leave
14MAT
15Sick Leave
Sheet1
Cell Formulas
RangeFormula
D2D2=COUNTIF(A2:A15,"Privileged Leave")
D3D3=COUNTIF(A2:A15,"Sick Leave")
D4D4=COUNTA(A2:A15)-SUM(D2:D3)
D5D5=SUM(D2:D4)
 
Upvote 0
Solution
1st Dec - PL (Privilaged)
2nd Dec - PL
3rd Dec - SL (Sick Leave)
4th Dec - SL
5th Dec - MRG (Marriage Leave)
6th Dec - MRG
7th Dec - MAT
8th Dec - PAT
9th Dec - REL
10th Dec - Other
So as per above information Total PL and SL is 2 each seperately. I want rest all the leaves to to be considered as other and I want a formula which will exclude PL SL Present and Holiday from tracker and calculate the rest as one.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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