Help Needed To Calculate On Excel - Xls Download

Gianim23
Hi Friends :
I am working on payroll data. Now if a person has taken half day on three separate days as CL then what formula should I use in a excel so that the sum of all the CL taken during the month arrives at 1.5 days.
Please share inputs.
- Gia
Santosh_Nayak
Hi Gia,
Can you please explain it briefly. Using the [=sum()] formula you can add the cells. Instead of that if you want any other formula then post your query clear.
Gianim23
Hi Santosh :
Thank you for responding. I am attaching a sample sheet. I want to plug in formula to calculate sum of Half day (HD) as per leave type (CL/SL,PL). The total leaves should appear in column `AJ' to `AM"
I am a little stuck here. Your inputs will help me.
- Gia
1 Attachment(s) [Login To View]

Mayur Shinde HR
hi Gia,
Use the below formula in your "Leave (CL)" column. It will give you the correct figure
=((COUNTIF(F5:AH5,"CL HD"))/2)+((COUNTIF(F5:AH5,"CL")))
Verify and let me know if it comes out to be correct
Mayur Shinde HR
Similarly, you can replace CL with PL and SL to calculate total number for leaves (either full day or half day)
Mayur Shinde HR
ok Great to hear that.... Rather thanks to you to post such complicated question which was never thought off.
I helped me to do some RnD on excel formula..
Cheers!!
Santosh_Nayak
Hi Gia attaching the file please take a look.............................................. ............................
1 Attachment(s) [Login To View]

Gianim23
Thanks a lot Santosh !!
Truly Citehr is super fabulous.... I feel absolutely elated with such a prompt response.
Thanks to the Founders of this site also for providing us this outstanding forum
- Gia
If you are knowledgeable about any fact, resource or experience related to this topic - please add your views. For articles and copyrighted material please only cite the original source link. Each contribution will make this page a resource useful for everyone. Join To Contribute