ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¦p¦ó¥ÎÀx¦s®æªºÃC¦â¨Ó¥[Á`©Î­pºâ¤@Äæ¸Ìªº¸ê®ÆÁ`©M©M­Ó¼Æ

¦p¦ó¥ÎÀx¦s®æªºÃC¦â¨Ó¥[Á`©Î­pºâ¤@Äæ¸Ìªº¸ê®ÆÁ`©M©M­Ó¼Æ

¦U¦ì¥ý¶i¡A
¦pªG¦³¤@Äæ¸ê®Æ¡AA1 ~A10¡A¨C®æ¦U¦s©ñ¤@¼Æ­È¡A°²³]·í¤¤¦³¼Æ®æªº®æ¦¡¬°¬õ¦â¡A­n¦p¦ó¤~¥i¥H±N·í¤¤¬õ¦âªºÀx¦s®æªº¤º®e¥[Á`°_¨Ó(¦s©óA11)¡A¨Ã­pºâ¦³¬õ¦â¼Æ­ÈªºÄæ¦ì¦U¼Æ¦³´X­Ó(¦s©óA12)?

ÁÂÁÂ
Green bean (ªêªL¨§)

¥»©«³Ì«á¥Ñ register313 ©ó 2012-5-30 21:22 ½s¿è

¦^´_ 1# almond

VBA:
  1. Sub YY()
  2. [A11] = 0
  3. [A12] = 0
  4. For Each A In [A1:A10]
  5.   If A.Interior.ColorIndex = 3 Then   'If A.Font.ColorIndex = 3 Then
  6.      [A11] = [A11] + A
  7.      [A12] = [A12] + 1
  8.   End If
  9. Next
  10. End Sub
½Æ»s¥N½X
¤@¯ë°Ï:

1.¿ïB1,©w¸qx=GET.CELL(63,Sheet1!A1)
2.B1=x ©¹¤U½Æ»s¨ìB10
3.A11=SUMIF(B1:B10,3,A1:A10)
4.A12=COUNTIF(B1:B10,3)

TOP

¥»©«³Ì«á¥Ñ alumi ©ó 2012-5-30 14:52 ½s¿è
  1. For I=1 to 20
  2.    if cells( I,"A").font.color = vbRed then
  3.            cells(11,"A") =cells(11,"A") + cells( I,"A")      
  4.   end if
  5. Next I
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : «Î¼e¤£¦p¤ß¼e¡C
ªð¦^¦Cªí ¤W¤@¥DÃD