- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 254
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-23
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2012-12-11 18:30 ½s¿è
¦^´_ 1# flutist
°ò¥»¤W¨Ï¥Î¤½¦¡§Y¥i¹F¦¨¡A¼g¦¨VBA³Ì¦n°t¦X¨Æ¥óµ{§Ç- Private Sub Worksheet_Change(ByVal Target As Range)
- If Intersect(Target, [B3:B7]) Is Nothing Then Exit Sub
- If Application.CountIf(Sheet2.[A:A], Sheet1.[A2]) = 0 Then Sheet1.[D2] = "´Á§O¿ù»~": Exit Sub '´Á§O¿ù»~
- '°ò¥»¸¹½X
- x = _
- Evaluate("=SUMPRODUCT(ISNUMBER(1/COUNTIF(OFFSET(Sheet2!$A$1,MATCH(Sheet1!$A$2,Sheet2!$A:$A,0)-1,1,,6),Sheet1!$B$2:$B$7))*1)")
- '¯S§O¸¹
- y = _
- Evaluate("=ISNUMBER(MATCH(OFFSET(Sheet2!$A$1,MATCH(Sheet1!$A$2,Sheet2!$A:$A,0)-1,7),Sheet1!$B$2:$B$7,0))*0.5")
- Sheet1.[D2] = Application.Lookup(x + y, Array(0, 3, 3, 5, 4, 4.5, 5, 5.5, 6), Array("¥¼¤¤¼ú", "´¶¼ú", "³°¼ú", "¥î¼ú", "¸v¼ú", "¤T¼ú", "¶L¼ú", "ÀY¼ú"))
- End Sub
½Æ»s¥N½X |
|