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

[µo°Ý] ²³æExcelªº°ÝÃD

[µo°Ý] ²³æExcelªº°ÝÃD

¥»©«³Ì«á¥Ñ otis0309 ©ó 2014-8-13 16:39 ½s¿è



§Ú·Q§â¥ªÃ䪺¸ê®Æ¥i¥H¦Û°Ê¾ã²z¦¨¥kÃ䪺¸ê®Æ¡A¦ý¬O§Æ±æ¤£¥Î­«·s§ì¡A¥L·|®Ú¾Úµ{¦¡¦Û¤v§ì¦n
§Úªº¤èªk¦p¤U

1.§Ú¥ý¥Î¼Ï¯Ã¤ÀªRªí§ì¥X³æ¦ì¡A¨Ï¨äÅã¥Ü12,13,14  
2.§Q¥ÎsumifÅã¥ÜÁ`¼Æ¶q¡CF2=SUMIF($A$2:$A$5,E2,$B$2:$B$5)¡A¦b¤U©Ô
3.¥­§¡»ù®æ§Ú´N·Q¤£¥X¨Ó¤F¡A§Ú¬O·Q°µ¥X¬Y¤@³æ¦ìªº¥­§¡»ù®æ¡C§Y³æ¦ì12ªº¥­§¡»ù®æ¬O(4*10+3*15)/(4+3)  ³o­Ó¦³µ{¦¡¥i¥H¤@¦¸®i²{¶Ü?
   ¥»¨Ó¬O¥Îvlookup()*vlookup()ªº¤è¦¡¡A¦ý¬O¥ý»Ý­n§P©w¥X³æ¦ì12¡A©Ò¥H§ÚÁÙ¬O·Q¤£¥X¨Ó

·Ð½Ð¤j®aÀ°§Ú¸Ñ¤@¤U¡A¥i¥Hªº¸Ü§Æ±æ¯à°÷¤£­n¥Î¨ìVBA¡A¨þ¨þ

¦A¸É¤@¤U¡A¦³¨ä¥¦¤èªk¤]¥i¥H§¹¦¨¹³¼Ï¯Ã¤ÀªRªíªº¥\¯à¡A§¹¦¨³æ¦ì¨º¤@Äæ¶Ü?

TOP

=SUMPRODUCT(--(E2=A$2:A$5)*B$2:B$5*C$2:C$5)/SUMPRODUCT((E2=A$2:A$5)*B$2:B$5)
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

­ì¨Ó¥ý¥ÎE2=A$2:A$5Åý¦o§P§O¬° 1:0:1:0:0³o¼Ë§Ú´NÀ´¤F¡AÁÂÁªO¤j
¤£¹L§ÚÁÙ¦³¤@­Ó°ÝÃD¬O
¦³¨ä¥¦¤èªk¤]¥i¥H§¹¦¨¹³¼Ï¯Ã¤ÀªRªíªº¥\¯à¡A§¹¦¨¥kÃä³æ¦ì¨º¤@Äæ¶Ü?
¦³¨ç¼Æ¥i¥H°µ¨ì³oºØ¥\¯à¶Ü?

TOP

¦^´_ 4# otis0309
³æ¦ì³£¬O¼Æ­Èªº¸Ü
E2°}¦C¤½¦¡
=IF(ROW(A1)>ROUND(SUM(1/COUNTIF($A$2:$A$5,$A$2:$A$5)),0),"",MIN(IF(ISERROR(MATCH($A$2:$A$5,$E$1:E1,0)),$A$2:$A$5,"")))
¦V¤U½Æ»s
F2=SUMPRODUCT(($A$2:$A$5=E2)*$B$2:$B$5)
G2=SUMPRODUCT(($A$2:$A$5=E2)*$B$2:$B$5*$C$2:$C$5)/F2
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

®Ú¾Úhsieh¤jªº±Ðªk
§Ú¥ÎE2°}¦Cªº¤½¦¡©¹¤U©Ô¡Aµ²ªG¥X²{¤U¹Ï

¦A§ó¥J²Ó¬Ý¤@¤U¡AE3½T¹ê¬O¼Æ¾Ú13¦ý¬O¨SÅã¥Ü
¦ÓE4ªº¼Æ¾Ú«o¬O13¦Ó«D14¡A¦p¤U¹Ï


¤£ª¾¬O§_­þÃä¥X°ÝÃD

TOP

        ÀR«ä¦Û¦b : µêªÅ¦³ºÉ¡D§ÚÄ@µL½a¡AµoÄ@®e©ö¦æÄ@Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD