hi Aderbalito, welcome to the forum. glad you found a way. if you're satisfied with the answer, please mark it as "Solved". my signature in the thread will guide you how to do that. thanks
=)
an alternative is to put this in M1:
=SUMPRODUCT(--($A1:$J1=OFFSET($A3,COLUMNS($M1:M1)-1,,,10)))
Bookmarks