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

[µo°Ý] ·Q½Ð±Ð¦³Ãö²Ö­p¬Û¥[¤Î¬Û´îªº¨ç¼Æ°ÝÃD

®w¦s´ú¸Õ.rar (36.35 KB) ¦^´_ 10# ML089


   ¤p§Ì­«·s¤W¶Ç¹Ï¤ù¤ÎÀÉ®×~¤£ª¾¹D¤½¦¡¬O§_¥i¥H°µ¨ì³o¼Ë~­n¦A³Â·Ðª©¤j¤Î¦U¦ì«e½úÀ°¦£¬Ý¤@¤U~·PÁ¦U¦ì

¥X³fªí´ú¸Õ1.rar (39.68 KB)

TOP

¦^´_ 21# ¤p¸ô¦èªk

G2 =IFERROR(MAX(0,IF(COUNTIF(A$2:A2,A2)=1,VLOOKUP(A2,[®w¦s´ú¸Õ.xlsx]¤u§@ªí1!$A:$B,2,FALSE),LOOKUP(1,0/(A$1:A1=A2),E$1:E1)))-D2,"µL¦¹®Æ¸¹")
   
¤½¦¡®ÄªG
®w¦s ¥X³f
100  50    = 50
50    100  = -50
0       50    = -50
-50   50    = -50
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 22# ML089


    ÁÂÁª©¤j~¥¿¬O¤p§Ì©Ò»Ý¨Dªº~³o¼Ë¤p§Ì´N¤£¥Î¨C¤Ñ³£­n¤@µ§¤@µ§ªº¥h­pºâ¤F~«D±`ÁÂÁÂ~¥t¥~¦³¤@¨Ç°ò¦ªº°ÝÃD·Q½Ð±Ðª©¤j¤Î¦U¦ì«e½ú~
§Æ±æª©¥D¤Î«e½ú¤£§[«ü±Ð~ÁÂÁÂ

TOP

¦^´_ 23# ¤p¸ô¦èªk
G2 =IFERROR(MAX(0,IF(COUNTIF(A$2:A2,A2)=1,VLOOKUP(A2,[®w¦s´ú¸Õ.xlsx]¤u§@ªí1!$A:$B,2,FALSE),LOOKUP(1,0/(A$1:A1=A2),E$1:E1)))-D2,"µL¦¹®Æ¸¹")

MAX(0,1) = 1
MAX(0,-1) = 0 ¡A·íIF(....)¤p©ó0®É´N·|¨ú0

LOOKUP(1,0/(A$1:A1=A2),E$1:E1) ³o¤½¦¡¬O¨ú²Å¦XA$1:A1=A2®É³Ì«á¤@­Ó¤§¹ïÀ³­È¡Cºâ¬O±`¥Î°ò¥»¤½¦¡¡C
(A$1:A1=A2) ¬OÅÞ¿è¹Bºâ¦¡¨ä­È¬° TRUE¡BFALSE¡ATRUE¡BFALSE¹J¨ì¼Æ¾Ç¹Bºâ®É¥i¥Hµø¬° 1¡B0¡C
0/TRUE = 0/1 = 0¡A0/FALSE = 0/0 = #DIV/0! (¿ù»~­È)
¨Ò¦p E6 ªº 0/(A$1:A4=A5)={#DIV/0!;#DIV/0!;#DIV/0!;0}¡ALOOKUP(1, ·|§ä {#DIV/0!;#DIV/0!;#DIV/0!;0} ¤¤ªº1¡A¦ý³£§ä¤£¨ì¦^¶Ç³Ì«á¤@­Ó¼Æ¦r0¦ì¸m©Ò¹ïÀ³ªº­È¡C
¿ï¨ú¤½¦¡¤¤§A¬Ý¤£À´ªº¦ì¸m¡A«öF9´N¥i¥H¬Ý¨ì­ÈªºÅܤƥi¥HÀ°§U§A¤F¸Ñ¡C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 24# ML089


    ·PÁª©¥Dªº²Ó¤ß»¡©ú~ÁöµMÁÙ¦³³\¦h¤£©ú¥Õªº¦a¤è~¤p§Ì·|ºCºC´ú¸Õ²z¸Ñªº~ÁÂÁÂ!!

TOP

        ÀR«ä¦Û¦b : ­×¦æ­nô½t­×¤ß¡AÂǨƽm¤ß¡AÀH³B¾i¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD