sum with 2 criteria

D

Dave

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
 
P

Peo Sjoblom

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)
 
A

Ashish Mathur

Hi,

You can also try using array formulas (Ctrl+Shift+Enter)

=count(if((range1="department")*(range2<date1)*(range3>date2)),1,0))

Regards,

Ashish Mathur
 
Top