Sumif from another sheet google sheets. To use multiple criteria, use the database function DSUM.