thnx Mustafaine i've done this with advance filter and sumproduct formula

very thnx to Peter who solved my problem