View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default How to create a formula to calculate a sum of cells from a date ra

=SUMIF(A:A,"=2008-01-01",B:B)-SUMIF(A:A,"=2008-02-01",B:B)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"RayRay" wrote in message
...
I want to create a sum of hours worked (Column B) to a date range (Column
B)
and report it in another cell.

A B
1 Date OT Hrs
2 1/3/08 0.5
3 1/5/08 1.25
4 2/1/08 3.0

So when I create the formula it would tell me that I worked 1.75Hrs in Jan