|
楼主 |
发表于 2017-9-21 15:31
|
显示全部楼层
=SUMPRODUCT((WEEKDAY(E3+ROW(INDIRECT("1:"&ROUND((H3-E3)*24*60,)))/24/60,2)<7)*(HOUR(E3+ROW(INDIRECT("1:"&ROUND((H3-E3)*24*60,)))/24/60)>=9)*(MOD(24*(E3+ROW(INDIRECT("1:"&ROUND((H3-E3)*24*60,)))/24/60),24)<12.5))+SUMPRODUCT((WEEKDAY(E3+ROW(INDIRECT("1:"&ROUND((H3-E3)*24*60,)))/24/60,2)<7)*(HOUR(E3+ROW(INDIRECT("1:"&ROUND((H3-E3)*24*60,)))/24/60)>=13.5)*(MOD(24*(E3+ROW(INDIRECT("1:"&ROUND((H3-E3)*24*60,)))/24/60),24)<18))+SUMPRODUCT((WEEKDAY(E3+ROW(INDIRECT("1:"&ROUND((H3-E3)*24*60,)))/24/60,2)<6)*(HOUR(E3+ROW(INDIRECT("1:"&ROUND((H3-E3)*24*60,)))/24/60)>=18)*(MOD(24*(E3+ROW(INDIRECT("1:"&ROUND((H3-E3)*24*60,)))/24/60),24)<21.5))
请各位帮我简化一下, |
|