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

­pºâ¶g³ø¹S

­pºâ¶g³ø¹S

½Ð°Ý¦U¦ì¤j¤jÃö©óªÑ²¼­nºâ¶g³ø¹Sªº°ÝÃD

EXCELÀɮפ¤¦³1¦~ªº¨C¤é«ü¼Æ(©Î­ÓªÑ)¦¬½L¸ê®Æ¡A¥t¥~¤]¦³¤é´ÁÄæ¦ì¡C
±ý­pºâ³o¤@¦~¶¡ªº¨C¶g¶g³ø¹S²v(¥Î³o§«ô¤­»P¤W§«ô¤­ªº¦¬½L»ù­pºâ)
¦ý«á¨Óµo²{³o¼Ë°µ¦³°ÝÃD Ä´¦p¬Y­Ó§«ô¤­ªÑ¥«¥ð¥«¡A©Ò¥H¨S¦³·í¤éªº¸ê®Æ¡A©Ò¥H¸Ó¶gÀ³¸Ó§ï¥Î¬P´Á¥|ªº¦¬½L»ù¡A
À³¸Ó¨Ï¥Î¦óºØ¨ç¼Æ½T«O¨C¶g³£·|®»¥X³Ì«á¥æ©ö¤é(³q±`¬OFRIDAY,FRIDAY©ñ°²´N¬OTHURSDAY,·íµM¤]¦³¥i¯à¬OWEDNESDAY)ªº¦¬½L»ù.
GinBow

¦^´_ 1# ginbow


¥Î¸ê®Æ®w¥[Á`¨ç¼Æ DSUM   ¿é¤J¤é´Á¥i±o
¦p¹Ï
¨Ï¥Î WEEKNUM¶·¦b¼W¯q¶°¦w¸Ë¡u¤ÀªR¤u¨ã½c¡v¡C
A:B¨âÄ欰¸ê®Æ®w
¶g§O         E2=WEEKNUM(¤é´Á)=WEEKNUM($D$2)   
Á`¦¬½L»ù F2=DSUM(A:B,B1,E1:E2)
DSUM(database,field,criteria)


¦p¥Î¥¨¶°¦p¤U
  1. Sub Ex()
  2.     Dim Wd As String, Tol As Double, i As Long
  3.     With Sheet1
  4.         Wd = Format(.Range("D2"), "WW")
  5.         .Range("E2") = Wd & "¶g"
  6.         i = 1
  7.         Do While .Cells(i, "a") <> ""
  8.             i = i + 1
  9.             If Format(.Cells(i, "a"), "WW") = Wd Then Tol = Tol + .Cells(i, "B")
  10.         Loop
  11.         .Range("F2") = Tol
  12.     End With
  13. End Sub
½Æ»s¥N½X

TOP

ÁÂÁÂGBKEEµ¹ªº·§©À ¥i¬O§Ú­nªº¤£¬O¨º¤@¶g¥þ³¡ªº¦¬½L»ù¦X
¦]¸Ó¬O»¡¨º¤@¶g¦³¥æ©ö¸ê®Æªº³Ì«á¤@¤ñ
¦p¤W¹Ï °²¦p¨S¦³5/20¸¹ªº¥æ©ö¸ê®Æ
¦Ó¨º¤@¶gªº³Ì«á¤@¤ñ¸ê®Æ´N¬O5/19
©Ò¥H§ì¨ìªº­n¬O5/19©M5/13
GinBow

TOP

§Ú¬ðµM¦³ÆF·P¤F!¥ý¨Ó¼g¬Ý¬Ý !
¥ý§PÂ_¤µ¤Ñ¬O¤£¬O§«ô¤­ ¦pªG¤£¬O´N©¹«e§ä¤W­Ó§«ô¤­¬Ý¦³¨S¦³¸ê®Æ
¦pªG¨S´N-1§ì¦b¨S´N-2 ª½¨ì§ì¨ì¦³¸ê®Æ
µM«á¦b©¹«e¥h§ä¤W¤W­Ó§«ô¤­
GinBow

TOP

¤£¾å±o§Úªº³B²z¤è¦¡~ ¦³¨S¦³²Å¦X¼Ó¥Dªº­n¨D
§Úªº¤è¦¡¬O±NdataÂà´«¦¨¨C¶gªº¤è¦¡~ ³o¼Ë¥i¥H±Æ°£¼Ó¥D¼´¤£¨ì¸Ó¶g³Ì«á¤@¤Ñªº¦¬½L»ù°ÝÃD~
ªþ¥ó¬O§Ú§¹¦¨ªºÀÉ®×~  ¶È¬O³]©w¤@­Ó«ö°·¥[¤W~ ¨Ï¥Î¤@¨Ç¨ç¼Æ«á~ ±N¨ädata¶i¦æÂà´«~
  cÄæ¦ì¨ç¼Æ=WEEKDAY(A2,2) <---±q²Ä2¦C¶}©l
  dÄæ¦ì¨ç¼Æ=A3-$A$2 <----±q²Ä3¦C¶}©l
  oÄæ¦ì¨ç¼Æ=IF(M2="",IF(L2="",IF(K2="",IF(J2="",IF(I2="","",I2),J2),K2),L2),M2) <---±q²Ä2¦C¶}©l
   «öŲªºµ{¦¡½X~
  Private Sub CommandButton1_Click()
Sheet1.Range("H:N").ClearContents '¥ý²M°£¸ê®Æ
'Äæ¦ì³]©w
Sheet1.Range("H1") = "¬P´Á¤é"
Sheet1.Range("I1") = "¬P´Á¤@"
Sheet1.Range("J1") = "¬P´Á¤G"
Sheet1.Range("K1") = "¬P´Á¤T"
Sheet1.Range("L1") = "¬P´Á¥|"
Sheet1.Range("M1") = "¬P´Á¤­"
Sheet1.Range("N1") = "¬P´Á¤»"

'±N¸ê®ÆÂà´«¬°¨C¤@¶gªº®æ¦¡
Do Until Sheet1.Range("A" & 2 + I) = ""

If Sheet1.Range("A" & 2 + I).Value = Sheet1.Range("A" & 2) Then
   
Else
   A = Int(Sheet1.Range("D" & 2 + I) / 7)
End If

B = B
If B = A Then
   K = K
Else
   B = A
   K = K + 1
End If
    Select Case Sheet1.Range("C" & 2 + I)
    Case 7
         Range("H" & 2 + K) = Sheet1.Range("B" & 2 + I)
    Case 1
         Range("I" & 2 + K) = Sheet1.Range("B" & 2 + I)
    Case 2
         Range("J" & 2 + K) = Sheet1.Range("B" & 2 + I)
    Case 3
         Range("K" & 2 + K) = Sheet1.Range("B" & 2 + I)
    Case 4
         Range("L" & 2 + K) = Sheet1.Range("B" & 2 + I)
    Case 5
         Range("M" & 2 + K) = Sheet1.Range("B" & 2 + I)
    Case 6
         Range("N" & 2 + K) = Sheet1.Range("B" & 2 + I)
         
    End Select

I = I + 1
   
Loop
End Sub
ªþ¥ó
­pºâ¶g³ø¹S.rar (15.05 KB)
µ²ªG¹Ï¥Ü
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

¦^´_ 3# ginbow
¦Û­q¨ç¼Æ¸Õ¸Õ¬Ý


¦¬½L»ù..rar (30.98 KB)

TOP

¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

§Ú¦b¸Õ¸Õ¬Ý! ÁÂÁ ^^
GinBow

TOP

        ÀR«ä¦Û¦b : ¹ï¤÷¥À­nª¾®¦¡A·P®¦¡B³ø®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD