counting days with any function

I hope one of you can help me in this. For counting number of days present for attendance i used countif function in the following way =COUNTIF(I27:AM27,"=P")+COUNTIF(I27:AM27,"=H"). This gives me the number of salary payable days. But if a person is present only for half a day, then i want to put small p and those cells should add only as half a day each. Please do help me on the function to be used.

Ranjit

Replies (4)
Originally posted by :RANJIT
" I hope one of you can help me in this. For counting number of days present for attendance i used countif function in the following way =COUNTIF(I27:AM27,"=P")+COUNTIF(I27:AM27,"=H"). This gives me the number of salary payable days. But if a person is present only for half a day, then i want to put small p and those cells should add only as half a day each. Please do help me on the function to be used.
Ranjit
"

Sir,
 

Your formula is o.k.

If you want half  day sould add with the No. of working days simply divide the secound countif. Like =countif(I27:AM27,"=P")+countif(I27:AM27,'=H")/2.

Small p not considered, you should follow the H (half day) only.

Correct me if iam wrong

thanks

Great! Thanks a lot Kanakaraj! Thank you very much! Your advice worked.

Originally posted by :L KANAGARAJ
"





Originally posted by :RANJIT





"

I hope one of you can help me in this. For counting number of days present for attendance i used countif function in the following way =COUNTIF(I27:AM27,"=P")+COUNTIF(I27:AM27,"=H"). This gives me the number of salary payable days. But if a person is present only for half a day, then i want to put small p and those cells should add only as half a day each. Please do help me on the function to be used.

Ranjit

"







Sir,

 

Your formula is o.k.

If you want half  day sould add with the No. of working days simply divide the secound countif. Like =countif(I27:AM27,"=P")+countif(I27:AM27,'=H")/2.

Small p not considered, you should follow the H (half day) only.

Correct me if iam wrong

thanks
"
Originally posted by :RANJIT
" Great! Thanks a lot Kanakaraj! Thank you very much! Your advice worked.



Originally posted by :L KANAGARAJ


"



Originally posted by :RANJIT


"
I hope one of you can help me in this. For counting number of days present for attendance i used countif function in the following way =COUNTIF(I27:AM27,"=P")+COUNTIF(I27:AM27,"=H"). This gives me the number of salary payable days. But if a person is present only for half a day, then i want to put small p and those cells should add only as half a day each. Please do help me on the function to be used.
Ranjit
"



Sir,
 
Your formula is o.k.
If you want half  day sould add with the No. of working days simply divide the secound countif. Like =countif(I27:AM27,"=P")+countif(I27:AM27,'=H")/2.
Small p not considered, you should follow the H (half day) only.
Correct me if iam wrong
thanks
"


 
"

 Sir,
 

This attachment also may useful one.

Originally posted by :L KANAGARAJ
"


Originally posted by :RANJIT


"
Great! Thanks a lot Kanakaraj! Thank you very much! Your advice worked.



Originally posted by :L KANAGARAJ


"



Originally posted by :RANJIT


"
I hope one of you can help me in this. For counting number of days present for attendance i used countif function in the following way =COUNTIF(I27:AM27,"=P")+COUNTIF(I27:AM27,"=H"). This gives me the number of salary payable days. But if a person is present only for half a day, then i want to put small p and those cells should add only as half a day each. Please do help me on the function to be used.
Ranjit
"



Sir,
 
Your formula is o.k.
If you want half  day sould add with the No. of working days simply divide the secound countif. Like =countif(I27:AM27,"=P")+countif(I27:AM27,'=H")/2.
Small p not considered, you should follow the H (half day) only.
Correct me if iam wrong
thanks
"


 
"



 Sir,
 
This attachment also may useful one.
"

Simply GR88888888888888888888888888

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
29 August 2026
Chartered Accountant

Velionit Consulting PVT LTd

Mumbai

CA

View Details
Company
04 September 2026
CA inter Or ca finalist

A Jaiswal and company

Lucknow

CA Final

View Details
Company
ARTICLESHIP 07 September 2026
CA Articles

Kothari Jain Patil & Chartered Accountants

Pune

CA Inter

View Details
Company
ARTICLESHIP 25 August 2026
CA Article's

Saini Pati Shah & Co LLP

Mumbai

CA Inter

View Details
Company
ARTICLESHIP 14 August 2026
Article Assistant

N J Suresh & Associates

Bengaluru

CA Inter

View Details
Company
ARTICLESHIP 01 September 2026
Articles

Saini Pati Shah & Co LLP, Chartered Accountants

Mumbai

CA Foundation

View Details
Company
09 September 2026
SENIOR AUDITOR & ACCOUNTS MANAGER

Anupam Parashar & Co.

Ghaziabad

CA Final

View Details
Company
28 August 2026
Audit Manager

K A R M & CO

Mumbai

CMA

View Details