Re: adding cells within an array
- From: "Bob Phillips" <bob.NGs@xxxxxxxxxxxxx>
- Date: Fri, 25 Aug 2006 00:10:59 +0100
Take a look at
http://cjoint.com/?izblt21fQ5
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"beecher" <beecher@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8249C5BC-77BC-4973-8532-45140003EF51@xxxxxxxxxxxxxxxx
Thanks for the help fellas. I'm still having some trouble though. When Iformula,
tried Bob's formula I only got blank cells. When I tried Bernard's
I received a column of zeroes instead of the sums of each group.1.3
Maybe I should clarify the situation. Each of the numbers (0 or 1.2 or
etc.) are in a column. There are around 1400 cells in the column. Withinformula
each column there are alternating strings of zeroes and non-zero numbers.
For instance, part of the column A1:A20 could read like this 0, 0, 0, 1.3,
1.2, 1.3, 1.3, 1.3, 1.3, 1.3, 0, 0, 0, 0, 0, 0, 1.1, 1.8, 1.5, 0. I call
each string of non-zero numbers groups. Would you happen to know a
that provides the sum for each individual groups in the column?column
"Bernard Liengme" wrote:
Not very fancy but here goes.
Assuming you data is in A1:A(whatever)
In B1 enter =IF(AND(A1<>0,A2=0),SUM($A$1:A1),"") and copy down the
andIN C2 (NOT C1) enter =IF(ISERROR(B2-SUM($B$1:B1)),"",B2-SUM($B$1:B1))
set ofcopy down the column
Hide column B if required
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email
"beecher" <beecher@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A11C22F9-7132-42B3-A3B6-6CC38E83F61C@xxxxxxxxxxxxxxxx
I'm trying to devise a way to add cells within an array following a
iscriteria.
I have an array with a series of zero and non-zero numbers. As an
example:
1 0
2 0
3 1.2
4 1.3
5 1.4
6 0
7 1.1
8 1.8
9 0
10 0
I want to add all the numbers that are between the zeroes. That is, I
would
like to have two separate values in the above example: one value that
therethe
sum of 1.2, 1.3, and 1.4 and a second value that equals the sum of
1.1+1.8.
I could manually go through the array and add each sum, but because
calculation Iare
nearly 40 sums in each array and multiple arrays to do this
wouldwould like to find a function to perform this task for me. Any help
be
much appreciated.
.
- Follow-Ups:
- Re: adding cells within an array
- From: beecher
- Re: adding cells within an array
- References:
- Re: adding cells within an array
- From: Bernard Liengme
- Re: adding cells within an array
- Prev by Date: Re: Add a text to rows option
- Next by Date: Re: Conditional Formulas
- Previous by thread: Re: adding cells within an array
- Next by thread: Re: adding cells within an array
- Index(es):
Relevant Pages
|