The sumifs formula worked perfectly, thank you so much