Multiple criteria sumif array formula with logic

Is there more to this 500 row thing or is it a formula issue???