actually the sumifs is working thanks.

i will make another thread for another question