Excel 2002: How to sum up in blocks ?
One way...
In D2, enter this formula:
=IF(B1="LR",C2,IF(ISNUMBER(D1),D1+C2,C2))
and copy down column D as needed.
I don't recall if Excel 2002 supports conditional formatting. If it does,
select the cells in column D from D2 as far as needed. Select Conditional
Formatting from the Format menu. Change 'Cell Value Is' to 'Formula Is', then
enter this formula:
=(B2<"LR")
Click the Format button, and on the Font tab, change the color to white.
Click OK several times until you exit the Conditional Formatting dialog. All
the numbers in column D except the block totals should be invisible (because
the text color matches the background color).
If Excel 2002 doesn't have conditional formatting, enter this formula in E2:
=IF(B2="LR",D2,"")
and copy down as needed. Then hide column D.
Hope this helps,
Hutch
"Mr. Low" wrote:
Dear Sir,
I have the following table to be sum up in block as illustrated.
A B C D
Block
Serial No Border Amount Sub total
1 CX2145 LR 250 250
2 CX2146 550
3 CX2147 620
4 CX2148 420
5 CX2149 LR 200 1,790
6 CX2150 650
7 CX2151 210
8 CX2152 LR 140 1,000
9 CX2153 360
10 CX2154 480
11 CX2155 860
12 CX2156 LR 960 2,660
Column B is the block separator "LR" that divides the block to be sum up.
May I know what formula I must input at cell D1 and copy downwards to get
the answers?
Thanks
Low
--
A36B58K641
|