|
楼主 |
发表于 2017-9-21 15:31
|
显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
=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))
请各位帮我简化一下, |
|