½Ð°ÝÃö©óTRUEӼƧPÂ_ªº°ÝÃD¡H
- ©«¤l
- 209
- ¥DÃD
- 43
- ºëµØ
- 0
- ¿n¤À
- 262
- ÂI¦W
- 0
- §@·~¨t²Î
- win 7
- ³nÅ骩¥»
- office 20**
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-11-3
- ³Ì«áµn¿ý
- 2017-4-16
|
½Ð°ÝÃö©óTRUEӼƧPÂ_ªº°ÝÃD¡H
¦U¦ì¤j¤j¦n¡A¥ý«e¦³½Ð±Ð¦U¦ì¥ý¶iÃö©ó§Q¥ÎVBA§PÂ_ªº°ÝÃD¡G§Úªþ¥óªºexcelÀɬO¤@Ó·|¦Û°Ê·|¦bCÄæ§PÂ_BÄ檺«e¤TÓ¦r¬O§_¬°¡§½Ð°Ñ·Ó¡¨©Î¡§¦pªþ¹Ï¡¨µ{¦¡¡A¨Ã·|¦bCÄ檺³Ì«á¥[Á`TRUEªºÓ¼Æ¡A¦ý§Úµo²{¦bCÄ檺³Ì«á¦ü¥G¨S¦³¿ìªk¥[Á`TRUEªºÓ¼Æ¡A¤£ª¾¬°¦ó¡H§Ú·íªì¥H¬°¬O¤½¦¡ªºÃö«Y¡A¬G±NCÄ檺TRUE©ÎFALSEÈ¡A¥H½Æ»s¶K¤WȪº¤è¦¡¶K¤F¤@¦¸¡Aµo²{ÁÙ¬O¨S¥Î¡A½Ð±Ð¦U¦ì¤j¤j¬°¦ó¦³³o¼Ëªº°ÝÃD¡HÁÂÁ¡C
¨Ï¥Î¤èªk¡G¶}µo¤Hû¡÷¥¨¶°¡÷°õ¦æsheets.auto_count
³sµ²----------------------------
http://db.tt/Xyy7lr2R
----------------------------------- |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 1# tku0216
¥i§ï¥ÎSUMPRODUCT- Sub auto_count()
- a = [a1].End(xlDown).Row
- For i = 2 To a
- Cells(i, "c").FormulaR1C1 = "=if(OR(left(rc[-1],3)=""¦pªþ¹Ï"",left(rc[-1],3)=""½Ð°Ñ·Ó""),""TRUE"",""FALSE"")"
- Next
- 'Cells(a + 1, "c").FormulaR1C1 = "=countif(r[" & 1 - a & "]c:r[-1]c,TRUE)"
- Cells(a + 1, "c").FormulaR1C1 = "=SUMPRODUCT((r[" & 1 - a & "]c:r[-1]c=""TRUE"")*1)"
- Cells(a + 1, "d").FormulaR1C1 = "=countif(r[" & 1 - a & "]c:r[-1]c,""¿ï¶µA"")"
- Cells(a + 1, "e").FormulaR1C1 = "=countif(r[" & 1 - a & "]c:r[-1]c,""¿ï¶µB"")"
- Cells(a + 1, "f").FormulaR1C1 = "=countif(r[" & 1 - a & "]c:r[-1]c,""¿ï¶µC"")"
- Cells(a + 1, "g").FormulaR1C1 = "=countif(r[" & 1 - a & "]c:r[-1]c,""¿ï¶µD"")"
- For i = 2 To a
- Cells(i, "i").FormulaR1C1 = "=if(isblank(rc[1]),"""",if(len(rc[1])>1,2,1))"
- Next
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 209
- ¥DÃD
- 43
- ºëµØ
- 0
- ¿n¤À
- 262
- ÂI¦W
- 0
- §@·~¨t²Î
- win 7
- ³nÅ骩¥»
- office 20**
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-11-3
- ³Ì«áµn¿ý
- 2017-4-16
|
½Ð°ÝG¤j¡A¤£¤Ó¤F¸Ñ±zק墨¤@¦æ(²Ä7¦æ)«á¥b¬qªº·N«ä¡A¥i§_¸ÑÄÀ¤@¤U¡HÁÂÁ¡C |
|
|
|
|
|
|