banner_ad

counting days with any function

Excel for Finance 1164 views 4 replies

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


CCI Pro

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
ARTICLESHIP 08 June 2026
Internal & Taxation Article

O P Bagla & Co LLP

New Delhi

CA Inter

View Details
Company
26 May 2026
Senior Accountant cum purchase Manager

Vardhaman Group of India

Pimpri Chinchwad

CA Inter

View Details
Company
ARTICLESHIP 28 May 2026
Accounts, Audit & Compliance Executive

Shyam Joshi & Associates

Pune

B.Com

View Details
Company
Featured 26 May 2026
Account Executive

SMJ global advisors pvt ltd

New Delhi

B.Com

View Details
Company
09 June 2026
Accounts Associate

S Madan and CO

New Delhi

Graduate (Any)

View Details
Company
ARTICLESHIP 27 May 2026
CA Article Trainee

Rahul Dang & Associates-Chartered Accountants

Pune

CA Inter

View Details
Company
23 May 2026
Article Assistant

Geeta Manchanda & CO.

New Delhi

CA Inter

View Details
Company
22 May 2026
Audit assistant

Displayandbeyond

Mumbai

CA

View Details