- ©«¤l
- 8
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 16
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-16
- ³Ì«áµn¿ý
- 2012-12-6
|
¦^´_ 5# stillfish00
¤j¤j,
ì©lµ{¦¡¦p¤U,
³oÓ³¡¥÷¥Ø«e¦bÀɮפW³£¦³¹ê»Ú¹ïÀ³ªºSHEET¥h§@·~,
¥Ø«e§Ú¦bק諸´N¬O§â³o¨Ç"ªí"Âন"°}¦C"¥h¹Bºâ,
¤£ª¾¹D³o¼Ë¤l¤j¤j±z¦³¬ÝÀ´¤pªº°ÝÃD¶Ü?
³Â·Ð¤j¤j±z¤F,
ÁÂÁÂ!!!
Set rgpn = Range(Sheets("wh").[a2], Sheets("wh").[a65535].End(xlUp)) '®w¦s¸ê®Æ-®w¦s®Æ¸¹
Set rgw00 = Range(Sheets("wh").[j2], Sheets("wh").[j65535].End(xlUp)) '®w¦s¸ê®Æ-¦¨«~Ü
Set rgw01 = Range(Sheets("wh").[i2], Sheets("wh").[i65535].End(xlUp)) '®w¦s¸ê®Æ-¹s¥óÜ
Set rgabpn = Range(Sheets("ªí1").[C2], Sheets("ªí1").[C65535].End(xlUp)) 'ªí1®Æ¸¹
cl = Sheets("ªí2").Range("L1").End(xlToRight).Column '¨úªí2³Ì«á¤@Äæ
z22 = Sheets("ªí1").Range("a65535").End(xlUp).Row
z33 = Sheets("ªí2").Range("a65535").End(xlUp).Row
For i = 2 To z33
pn = Sheets("ªí2").Range("a" & i)
stk00 = Application.SumIf(rgpn, pn, rgw00)
stk01 = Application.SumIf(rgpn, pn, rgw01)
ttqty = m02a + m01a + m011 + m015 + m019 + m011w + m015w + m019w
Sheets("ªí2").Range("K" & i) = ttqty
Next
For i = 12 To cl ''''¥Ñªí2¨úA¥ó®Æ¸¹«ápºâªí1¤Wªº»Ý¨D
For j = 2 To z33
Dim rgabqty As Range
Set rgabqty = Range(Sheets("ªí1").Cells(2, i), Sheets("ªí1").Cells(z22, i)) '¯Ê®Æ¤ÀªRR«e¸m¸m§@·~-¯Ê®Æ«e¸mªºa²Õ¥óªº¦U¤é»Ý¨D
awpn = Sheets("ªí2").Cells(j, 1) ' ¨úªí2ªº®Æ¸¹
aqty = Application.SumIf(rgabpn, awpn, rgabqty) ''''¨úªí1¤WªºA¥ó³æ¤é»Ý¨D
qty = Sheets("ªí2").Cells(j, i - 1) |
|