FormatConditions«ç»ò¨ú±o¤å¦rÃC¦âªºÈ
- ©«¤l
- 20
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 61
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW®ç¶é
- µù¥U®É¶¡
- 2010-9-1
- ³Ì«áµn¿ý
- 2019-4-26
|
FormatConditions«ç»ò¨ú±o¤å¦rÃC¦âªºÈ
|
|
|
|
|
|
- ©«¤l
- 20
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 61
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW®ç¶é
- µù¥U®É¶¡
- 2010-9-1
- ³Ì«áµn¿ý
- 2019-4-26
|
§Ú§R°£¤F¤@¨Ç¸ê®Æ¡A¤£µMÀɮפӤj¡AY¦³»Ýn§¹¾ãª©ªºÀɮקڦA«¶Ç!!
¥Í?±±¨îªí-1.zip (107.79 KB)
|
|
|
|
|
|
|
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-10-22 17:51 ½s¿è
¦^´_ 3# doom834
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim Rng As Range, AR(), C As Integer, R As Integer
- For Each Rng In Sheets("图ªí").[b4:I11,b15:I22,b26:I33].Areas
- ReDim AR(1 To Rng.Columns.Count, 1 To Rng.Rows.Count)
- For R = 1 To Rng.Rows.Count
- For C = 1 To Rng.Columns.Count
- AR(R, C) = 0
- If Rng.Cells(R, C).FormatConditions.Count > 0 Then
- Rng.Cells(R, C).Select
- If Application.Evaluate(Rng.Cells(R, C).FormatConditions(1).Formula1) Then AR(R, C) = Rng.Cells(R, C).Value
- End If
- Next
- Rng.Cells(R, C) = Application.Sum(Application.Index(AR, R))
- Next
- For C = 1 To Rng.Columns.Count
- Rng.Cells(Rng.Rows.Count + 1, C) = Application.Sum(Application.Index(Application.Transpose(AR), C))
- Next
- Rng.Cells(Rng.Rows.Count + 1, Rng.Columns.Count + 1) = Application.Sum(Rng.Columns(Rng.Columns.Count + 1))
- Next
- End Sub
½Æ»s¥N½X ®æ¦¡¤Æ±ø¥ó¤½¦¡©Ç©Çªº°Ñ·Ó¬O§_¶]±¼¤F
|
|
|
|
|
|
|
- ©«¤l
- 20
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 61
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW®ç¶é
- µù¥U®É¶¡
- 2010-9-1
- ³Ì«áµn¿ý
- 2019-4-26
|
GB¤j¤j¡A§Ú¥Î§Aªº¥N½X¶]¤£¥X¨Óµ²ªGC~~
pºâ¥X¨ÓªºSum³£¬O0
¥t¥~®æ¦¡¤Æ±ø¥ó¨S¦³³]¿ù¡A§Ú³]©wªºÅÞ¿è¬O²Ä1Óªí¬O>0ªºÅã¥Ü¬õ¦r¡A
²Ä2Óªí¬O¨Ì¾Ú²Ä1Óªí¦³¼Æ¦rªº¤~·|¥Ü¦¨¬õ¦r¡C
¥Í?±±¨îªí-1.zip (108.36 KB)
|
|
|
|
|
|
|
- ©«¤l
- 20
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 61
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW®ç¶é
- µù¥U®É¶¡
- 2010-9-1
- ³Ì«áµn¿ý
- 2019-4-26
|
§Ú»{¬°¬OIf Application.Evaluate(Rng.Cells(R, C).FormatConditions(1).Formula1) Then AR(R, C) = Rng.Cells(R, C).Value³o¦æ¦³ÂI°ÝÃD¡A
¦]¬°³oÓ³£¬Ofalse¡A©Ò¥H¦s¤J°}¦CAR¸Ìªº¼Æȳ£¬O0¡A
³Ì«á¥[Á`°_¨Óªº³£¬O0 |
|
|
|
|
|
|
- ©«¤l
- 20
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 61
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW®ç¶é
- µù¥U®É¶¡
- 2010-9-1
- ³Ì«áµn¿ý
- 2019-4-26
|
¨º¬O¦]¬°§Ú¦b¤j³°¥Î³o¸Ìªºµ§¹q¡A
¨Æ¹ê¤W¦b§Úªº¹q¸£¤W¬Ý¬O¹Ïªí³oÓSheet¨S¿ù¡A
³oÓ¬O½sâóÂà´«¤W³y¦¨ªº¶Ã½X¡C |
|
|
|
|
|
|