View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Countif between two dates

adapt to suit
=sumproduct((a2:a22b1)*(a2:a22<=b2))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"AOP" wrote in message
...
I have the following formular:

=IF($B5002="","",COUNTIF(MAIN!$B$10:$B$5000,"" &$B5002 & ""))
Column A is the date
Column B is the unit

How do I modify it to count between two dates that are in cells Sheet2 P3
and R3

Thank you
--
AOP