Totally confused in Leave days & Earned days

pipsmultan

New Member
Joined
Jul 15, 2014
Messages
17
Hi,

:confused: Confused have put a lot time on below but couldn't find Solved it sadly ;(

I have a Senior hopefully might we can Solve below situation with formula.


Ever employee has number of Paid laves in his account. But those paid leaves can't be availed all at once.
Only allowed or can availed on every 6 present minimum in a week.


For example:s


One employee has Paid Leaves = 5
On Day 0/1/2/3/4/5 present = Zero Leave allowed.
On 6 preset = 1 Paid Leave can be avail not more then that.
likewise:
12 Present = 2 Paid Leaves can avail not more then that.
18 Preset = 3 Paid Leaves can avail not more then that.
So-on, until reaches to total days in a month 30/31.


Considering one thing If 'Full Present' and no leaves -Or- employee don't want to avail any paid leaves from his available leaves bank, then Earn day = only Total number of Present days (can be 30/31 according to month) & If present are Zero then Earned days should be Zero as well.


Is there any possibility to come up with a CODE on above Senior

Sample Excel file can be download here:
https://1drv.ms/x/s!AtjBTkpO-s3ggxrCYvno4xk119ko?e=M4CdUH


Thank you.


Best,
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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