That's why I added this:
Depends on which SUMIF - the last one yes, the first two no to needing the header rows.
unfortunately it was after you received the email notification after my last post without this addition to my post.