简单的是用sumif语句:
=SUMIF(R1C[-14]:R1000C[-14],RC[-14],R1C[-4]:R1000C[-4])
复杂点的就用下面这个的语句:
{=SUM(IF((R1C[-16]:R10000C[-16]=RC[-16])*(R1C[-12]:R10000C[-12]=RC[-12]),R1C[-2]:R10000C[-2]))}