sum with 2 criteria

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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)
 
Hi,

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

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

Regards,

Ashish Mathur
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top