E
Euh
I have data arrange like that (with blanks):
A B C
4.44 1
4.45 2
4.45 2
3.47 2
4.87 3
4.87 3
3.88 4
3.88 4
2.89 5
2.89 5
1.43 5
1.92 6
1.44 7
1.44 7
I want to put in column D the sum of all elements in "A" corresponding
to each
index contained in column "C" (and remove the blanks at the same time)
It would yield the following:
D
row1: 0
row2: 4.45+3.47
row3: 4.87
row4: 3.88
row5: 2.89+1.43
row6: 0
row7: 1.44
I made a huge formula that works, but I'm sure there is a more elegant
way to
do it...any ideas ?
what I've got so far:
+SUM(INDEX($A$2:$A$40,MATCH(ROW()-1,$C$2:$C$40,0)):INDEX($A$2:$A$40,MATCH(ROW()-1,$C$2:$C$40,0)+COUNTIF($C$2:$C$40,ROW()-1)-1))
A B C
4.44 1
4.45 2
4.45 2
3.47 2
4.87 3
4.87 3
3.88 4
3.88 4
2.89 5
2.89 5
1.43 5
1.92 6
1.44 7
1.44 7
I want to put in column D the sum of all elements in "A" corresponding
to each
index contained in column "C" (and remove the blanks at the same time)
It would yield the following:
D
row1: 0
row2: 4.45+3.47
row3: 4.87
row4: 3.88
row5: 2.89+1.43
row6: 0
row7: 1.44
I made a huge formula that works, but I'm sure there is a more elegant
way to
do it...any ideas ?
what I've got so far:
+SUM(INDEX($A$2:$A$40,MATCH(ROW()-1,$C$2:$C$40,0)):INDEX($A$2:$A$40,MATCH(ROW()-1,$C$2:$C$40,0)+COUNTIF($C$2:$C$40,ROW()-1)-1))