ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

§xÂZªº EXCEL ( IF)

¥»©«³Ì«á¥Ñ ML089 ©ó 2014-9-9 09:20 ½s¿è

¦^´_ 1# Cyssuc

¦­¤W 8~12¡A¤U¤È 13~17

= ¦­¤W®É¼Æ + ¤U¤È®É¼Æ
= MAX(0,MIN(12,Q2)-MAX(8,P2)) + MAX(0,MIN(17,Q2)-MAX(13,P2))

©Î
=IF(AND(P2>0,Q2>0), MAX(0,MIN(12,Q2)-MAX(8,P2)) + MAX(0,MIN(17,Q2)-MAX(13,P2)), "")
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 2# luhpro


    8        14.5
µª®×À³¸Óµ¥©ó14.5-8-1
¬Gµ¥©ó5.5

°ÝÃD¬O «ö¤W¤è¦Cªí­pºâµª®×¬O6.5   ©Ò¥H¯Ç´e¡C¡C¡C

½Ð±z¬O§_¥i¥H¦b¸Ñµª¤@¦¸©O?!
Cyssuc

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2014-9-8 23:46 ½s¿è

¦^´_ 1# Cyssuc
1. ²Ä¤G¶µ¥ô¦ó¤@®æµ¥©ó0 ¥i¥Î OR(Q2=0,P2=0) ¨Ó¹ê²{.
2. ¥u¦³¨â­ÓÀx¦s®æ¶¡ªº­pºâ, ¦ü¥G¤£¥Î¥Î¨ì SUM ¨ç¼Æ.

©Ò¥H¥i±o :

=IF((Q2-P2)>8,8,IF(OR(Q2=0,P2=0),0,IF(AND(P2<12,Q2>12),Q2-P2-1,Q2-P2)))

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤Hªº§Ö¼Ö¡D¤£¬O¦]¬°¥L¾Ö¦³±o¦h¡A¦Ó¬O¦]¬°¥L­p¸û±o¤Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD