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

[µo°Ý] ¿z¿ï«á¥[Á`

[µo°Ý] ¿z¿ï«á¥[Á`

½Ð°Ý¦p¦ó¿z¿ï¥X¡A§÷½è=A36¡A³W®æ¬°RH¬°¶}ÀYªºÁ`­«¡A¨Ã§â²Å¦X§÷½è©M³W®æªºÁ`­«¥[Á`©O???




¿z¿ï«á¥[Á`.rar (5.14 KB)

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-3-27 14:49 ½s¿è

¦^´_ 1# 0939875756


    ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
«á¾ÇÂǦ¹¥DÃD´ú¸Õ¦r¨åªº¯S©Ê,¾Ç²ß¨ì«Ü¦hª¾ÃÑ,«á¾ÇVBAªº¸Ñ¨M¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò
ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú

°õ¦æ«e:


°õ¦æµ²ªG:


'¦r¨å¸Ìªº°}¦C»Ý­nÅܼƲ±¸Ë¥X¨Ó½s¿è,¦A©ñ¦^¦r¨å,¤~¦³®Ä
Option Explicit
Sub TEST()
Dim Y, i&, j&, °}¦C()
Set Y = CreateObject("Scripting.Dictionary")
Set Y(1) = Range([1B!I1], [1B!A1].End(xlDown))
Y(2) = Y(1): Y(5) = 1: °}¦C = Y(2)
For i = 2 To UBound(°}¦C)
   If °}¦C(i, 4) Like "RH*" And °}¦C(i, 5) = "A36" Then
      Y(5) = Y(5) + 1
      For j = 1 To UBound(°}¦C, 2)
         °}¦C(Y(5), j) = °}¦C(i, j)
      Next
      Y(0) = Y(0) + °}¦C(Y(5), 8)
   End If
Next
Y(2) = °}¦C
Workbooks.Add
[A1].Resize(Y(5), UBound(Y(2), 2)) = Y(2)
Cells(Y(5) + 1, 3) = "¤p­p"
Cells(Y(5) + 1, 8) = Y(0)
Cells.Columns.AutoFit
Set Y = Nothing: Erase °}¦C
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¨ü±Ð¤F,¨S¦³¦X¥Îªº¤u¨ã,·Q¿ìªk²Õ¦X....«ä¦Ò¤è¦V¤Ó«]­­,­n¥[±j¾Ç²ß

TOP

¦^´_ 9# aa7551


    ¤£«ü©w¥Î¬Æ»ò¨ç¼Æ¸Õ¸Õ
=SUMPRODUCT((LEFT($D$2:$D$23,2)="RH")*($E$2:$E$23="A36"),$H$2:$H$23)

SUMIF¥[»²§UÄæ
¦p:J2=LEFT(D2,2)&E2¦V¤U½Æ»s
=SUMIF(J2:J23,"RHA36",H2:H23)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

gong¤j¤j,Âù±ø¥ó¥[»²§UxÄæ,¥i§_¼W¥[»¡©ú,¤£¬O«Ü¤F¸Ñ·N«ä

TOP

sumif()¥Î¦bÂù±ø¥ó¤W¥H¤W,¥i¥H¥[¤@»²§UÄæ
»²§UxÄæ=a1&b1&c1&d1
=sumif(x:x,...,...)
ª¾¤§¬°ª¾¤§¡A¤£ª¾¬°¤£ª¾¡A¸Û¹ê¤]¡I

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-11-22 21:59 ½s¿è

2007ª©¦³SUMIFS
=SUMIFS(H:H,D:D,"RH*",E:E,"=A36")
¨ä¹ê¥Î¦Û°Ê¿z¿ï´N¦¨°Õ
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ oobird ©ó 2010-11-22 21:53 ½s¿è

¥Î¤½¦¡¥i¥Îsumproduct©Îlookup¹Bºâ¡AÂù±ø¥ó¤£¯à¥Îsumif.
§A¥Îªº¬Osum°}¦C¡A¤]¬O¥i¥Hªº¡A¦Û¤v°µ§a¡I
¤£¹L¤£«Øij¡A¬Ý³o©«¡Ghttp://forum.twbts.com/thread-1962-1-1.html

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-11-22 21:53 ½s¿è

¨º¬O§_¯à¥Îsumifªº¤è¦¡°µ¥X¨Ó©O???

¦]¬°§Ú¥u·|¥Î{=SUM(IF($E$2:$E$23=E30,IF($D$2:$D$23=F30,$H$2:$H$23,0),0))}

§â²Å¦XA36 ©M RH300X300X10X15X7754 ³o2­Ó­Èºâ¥X¨Ó

¬O§_¯à§â²Å¦XA36©M¥HRH¶}ÀYªºÁ`­È¥HSUMIFªº¤è¦¡ºâ¥X¨Ó©O??

TOP

§Aªº°ÝÃD¬O"¿z¿ï«á¥[Á`", ¤£·Q­n¦Û°Ê¿z¿ïÁÙ¦³¶i¶¥¿z¿ï§r¡I

TOP

        ÀR«ä¦Û¦b : ¡i¬O§_µo´§¤F¨}¯à¡H¡j¤H¶¡¹Ø©R¦]¬°µu¼È¡A¤~§óÅã±o¬Ã¶Q¡CÃø±o¨Ó¤@½ë¤H¶¡¡AÀ³°Ý¬O§_¬°¤H¶¡µo´§¤F¦Û¤vªº¨}¯à¡A¦Ó¤£­n¤@¨ý¨Dªø¹Ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD