• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

If function for dated range

Hi All,

From the attached file I am trying to find the total count of present in Cell D3 based on the date available in D2 comparing the Date range from E6 to EI6. I need only the present count alone for the respective date in D2. I tried to use the below formula but it couldn't work.

COUNTIFS($G$6:$AK$6,"="&$D$2,COUNT("P"))

Thanks in advance!

Regards,
Shan
 

Attachments

Dear Shan

This formula counts the number of "P"s in the column which match the date in D2. In your spreadsheet this gives an answer of 5 for the date 10-jul-14. I don't understand how you got an expected answer of 5.70.

=COUNTIF(OFFSET(E7,0,MATCH(D2,E6:AI6,0)-1,6,1),"P")
 
Back
Top