View Single Post
  #1   Report Post  
Dave
 
Posts: n/a
Default sum with 2 criteria

With the below eqn do the dates have to be a cell reference or is it possible
to use a specific date?

One way

=SUMPRODUCT(--(A2:A50="Department"),--(B2:B50=D2),--(B2:B50<=E2),C2:C50)

where D2 hold the start date, E2 the end date and C2:C50 the amount/values
to sum

--
Regards,

Peo Sjoblom

(No private emails please)


"Dave" wrote in message
...
I have an excell sheet that gets updated daily with submissions from
different departments, what i want to do is to use a formula to submission
by
the department and between two dates