I4:I9=TEXT("2018/"&SUBSTITUTE(LEFT(E4,FIND("-",E4)-2),"月","/"),"M/D")
J4:J9=TEXT("2018/"&SUBSTITUTE(SUBSTITUTE(MID(E4,FIND("-",E4)+1,9),"月","/"),"日",),"M/D")
K4:K9=TEXT("2018/"&SUBSTITUTE(LEFT(LOOKUP(1,0/(F$4:F4<>""),F$4:F4),FIND("-",LOOKUP(1,0/(F$4:F4<>""),F$4:F4))-2),"月","/"),"M/D")
L4:L9=TEXT("2018/"&SUBSTITUTE(SUBSTITUTE(MID(LOOKUP(1,0/(F$4:F4<>""),F$4:F4),FIND("-",LOOKUP(1,0/(F$4:F4<>""),F$4:F4))+1,9),"月","/"),"日",),"M/D")
I .J配合表 1 "2018年" ,所以 +TEXT("2018/"&~ ~,"M/D") ,因月/日會隨當日 ,年份而改變
G4:G9=SUMIFS(B:B,A:A,">="&I4,A:A,"<="&J4,C:C,">="&K4,C:C,"<="&L4) |