- ©«¤l
- 9
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 15
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 10
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2016-5-4
- ³Ì«áµn¿ý
- 2016-6-8
|
¦³´XÓ¿z¿ï¸ê®Æªº°ÝÃD¡A§Ú¤@ª½·Q¤£¥X¸Ñ¨Mªº¤èªk¡A·Q³Â·Ð¤j®a¶°«ä¼s¯qÀ°§Ú·Q·Q¸Ó«ç»ò°µ¡C
¸ê®Æ¤j·§¦³´X¸Uµ§¡A§Ún±N¨ä¤¤º¡¨¬¤U¦C¥|Ó±ø¥ó(¥|±ø¥ó¥þ³£²Å¦X)ªº¨C¤@²Õ(¨C¤@²Õ³£¦³4µ§¸ê®Æ)¸ê®Æ³£¬D¿ï¥X¨Ó©ñ¦b¥t¤@±i¤u§@ªí¡C¥|±ø¥ó¦p¤U:
ÅܼƥN¸¹:
code=¸ê®Æ½s½X,
t0=¤é´Á½s½X(1~1065),
T=¨ì´Á¤é½s½X(1~121),
cp=¿ï¾ÜÅv«¬ºA(C=1,P=2),
K=¼i¬ù»ù®æ,
prem=Åv§Qª÷
§Ú¦³¦Û¤v¸ÕµÛ¨Ï¥Îautofilter¨Ó¸Ñ¨M±ø¥ó¤@©M±ø¥ó¤G¡A¦ý¤´¹J¨ì§xÃø¡Cµ{¦¡½X¦p¤U:- Sub morecriteriafilter()
- Dim i As Integer, j As Integer
- With Worksheets("be")
- For i = 0 To 1063
- For j = 0 To 130
- If .FilterMode = True Then .ShowAllData
- .Range("A1").AutoFilter Field:=2, Criteria1:="<" & 3 + i, Operator:=xlAnd, Criteria2:=">" & 0 + i
- .Range("A1").AutoFilter Field:=3, Criteria1:="=" & 1
- .Range("A1").AutoFilter Field:=5, Criteria1:=Cells(j + 2, 10)
- .AutoFilter.Range.SpecialCells(xlCellTypeVisible).Copy Worksheets("Sheet2").Range("B2").Offset(7 * i, 7 * j)
- Next j
- Next i
- End With
- End Sub
½Æ»s¥N½X §xÃø¤@: ¨S¦³¸Ñ¨M±ø¥ó¤T©M±ø¥ó¥|!!!
§xÃø¤G: ¥i¯à¬O¨Ï¥Îfor¡KnextªºÃö«Y¡A³B²z³t«×«ÜºC¡Ai=0 to 100¥ª¥k´N·|·í¾÷¦b¨º¸Ì¡A¥i¬O§Úªº¸ê®Æ¶q«Ü¤j(i=0 to 1065)
·Q¤£¥X¸Ñ¨Mªº¤èªkQAQ¡A¤×¨ä¬O±ø¥ó¤T©M±ø¥ó¥|¡A½Ð°ª¤â«üÂI¤@¤G¡C |
|