興趣嗜好

跳至

首頁
1

尾頁
   0


公爵府

積分: 29297

畀面勳章


1#
發表於 09-3-3 16:41 |只看該作者
可唔可以set formula 每隔5行加起來,因為有幾千行,如line 1 + line 6 + line 11 + line 16........


男爵府

積分: 7559


2#
發表於 09-3-3 17:08 |只看該作者
Simpliest way is VBA.


男爵府

積分: 7559


3#
發表於 09-3-3 17:09 |只看該作者
Or try this by using CSE:
=SUM((A:A) * (MOD( ROW(A:A )+1, 5)=0))


公爵府

積分: 29297

畀面勳章


4#
發表於 09-3-3 17:32 |只看該作者
原帖由 Aardvark 於 09-3-3 17:09 發表
Or try this by using CSE:
=SUM((A:A) * (MOD( ROW(A:A )+1, 5)=0))


唔係好得,如果想係 column A 出total?


公爵府

積分: 29297

畀面勳章


5#
發表於 09-3-3 17:33 |只看該作者
原帖由 Aardvark 於 09-3-3 17:08 發表
Simpliest way is VBA.


what is VBA?


男爵府

積分: 7559


6#
發表於 09-3-3 17:47 |只看該作者
原帖由 Debbie媽 於 09-3-3 17:32 發表
唔係好得,如果想係 column A 出total?


VBA: Visual Basic for applications (or something like that).

In fact, ur q has to be specific.

1st/ When you said, "5行", do you meant row or column?

2nd/ For the answer sum, you want to have it display for every 5行 or just an answer displaying the total sum?


洋房

積分: 83


7#
發表於 09-3-3 20:38 |只看該作者
你用多一行做加數咪得囉!
5,10,15,20 都有一個加隔離的數


公爵府

積分: 29297

畀面勳章


8#
發表於 09-3-3 21:17 |只看該作者
原帖由 Aardvark 於 09-3-3 17:47 發表


VBA: Visual Basic for applications (or something like that).

In fact, ur q has to be specific.

1st/ When you said, "5行", do you meant row or column?

columnA1+A6+A11+A16........

2nd/ For the answer sum, you want to have it display for every 5行 or just an answer displaying the total sum?

Display the total sum


洋房

積分: 83


9#
發表於 09-3-3 21:53 |只看該作者

係唔係要咁???


公爵府

積分: 29297

畀面勳章


10#
發表於 09-3-4 08:55 |只看該作者
唔係A1至A5 TOTAL, 只係加A1(321)+A6(68735)+A11(2257)+A16(2152)+A21(2047)=TOTAL75512放係A26


原帖由 IT-shadow 於 09-3-3 21:53 發表

係唔係要咁???


男爵府

積分: 7559


11#
發表於 09-3-4 10:01 |只看該作者
Below equation shoudl fit your requirement, i.e. A1 + A6 + A11 + ... and employ <CSE> rather than <Enter>

=SUM((A1:A65536) * (MOD( ROW(A1:A65536), 5)=0))


公爵府

積分: 29297

畀面勳章


12#
發表於 09-3-4 13:03 |只看該作者
原帖由 Aardvark 於 09-3-4 10:01 發表
Below equation shoudl fit your requirement, i.e. A1 + A6 + A11 + ... and employ rather than

=SUM((A1:A65536) * (MOD( ROW(A1:A65536), 5)=0))



唔係好明 employ <CSE> rather than <Enter>?


男爵府

積分: 7559


13#
發表於 09-3-4 15:27 |只看該作者
原帖由 Debbie媽 於 09-3-4 13:03 發表

唔係好明 employ rather than ?


CSE - Ctrl-Shift-Enter


民房

積分: 61


14#
發表於 09-3-5 00:48 |只看該作者
Aardvark's formula is wonderful

BTW, I guess there may be a typo. The last number of "0" should be "1" as shown below:-

=SUM((A1:A65536) * (MOD( ROW(A1:A65536), 5)=1))

Aardvark, you are great!!


公爵府

積分: 29297

畀面勳章


15#
發表於 09-3-5 10:40 |只看該作者


原帖由 AC-CityU 於 09-3-5 00:48 發表
Aardvark's formula is wonderful

BTW, I guess there may be a typo. The last number of "0" should be "1" as shown below:-

=SUM((A1:A65536) * (MOD( ROW(A1:A65536), 5)=1))

Aardvark, you are ...

[ 本帖最後由 Debbie媽 於 09-3-5 10:44 編輯 ]


男爵府

積分: 7559


16#
發表於 09-3-5 18:09 |只看該作者
原帖由 AC-CityU 於 09-3-5 00:48 發表

BTW, I guess there may be a typo. The last number of "0" should be "1" as shown below:-

=SUM((A1:A65536) * (MOD( ROW(A1:A65536), 5)=1))


Hey, nothing is perfect, these days

首頁
1

尾頁

跳至