- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
¦^´_ 1# vinejason
Sub ex()
With Sheets("Sheet2")
'BÄæ³]¨ç¼Æ¦p¤U
'=IF(A2<> "",VLOOKUP($A$2:$A$409,¸ê®Æ!$A$1:$C$64,2,FALSE), "")
Range("B2:B409") = "=IF(A2<> """",VLOOKUP($A2,¸ê®Æ!$A$1:$C$64,2,FALSE), """")" '»P즡²¤¦³¤£¦P
' Range("B2:B409") = Range("B2:B409").Value '¤½¦¡ÂରÈ
'CÄæ³]¨ç¼Æ¦p¤U
'=IF(B2<> "",VLOOKUP($A$2:$A$409,¸ê®Æ!$A$1:$C$64,3,FALSE), "")
Range("C2:C409") = "=IF(B2<> """",VLOOKUP($A2,¸ê®Æ!$A$1:$C$64,3,FALSE), """")" '»P즡²¤¦³¤£¦P
' Range("C2:C409") = Range("C2:C409").Value '¤½¦¡ÂରÈ
'OÄæ³]¨ç¼Æ¦p¤U
'=IF(AND(COUNTIF($A$2:$A2,$A2)=1,SUMIF($A$2:$A$301,$A2,$D$2)),SUMIF($A$2:$A$301,$A2,$D$2),"")
Range("O2:O409") = "=IF(AND(COUNTIF($A$2:$A2,$A2)=1,SUMIF($A$2:$A$301,$A2,$D$2)),SUMIF($A$2:$A$301,$A2,$D$2),"""")"
' Range("O2:O409") = Range("O2:O409").Value '¤½¦¡ÂରÈ
'PÄæ³]¨ç¼Æ¦p¤U
'=IF(AND(COUNTIF($E$2:$E2,$E2)=1,SUMIF($E$2:$E$301,$E2,$D$2)),SUMIF($E$2:$E$301,$E2,$D$2),"")
Range("P2:P409") = "=IF(AND(COUNTIF($E$2:$E2,$E2)=1,SUMIF($E$2:$E$301,$E2,$D$2)),SUMIF($E$2:$E$301,$E2,$D$2),"""")"
' Range("P2:P409") = Range("P2:P409").Value '¤½¦¡ÂରÈ
End With
End Sub |
|