excel - Sum into aggregate rows based on duplicate column value -



excel - Sum into aggregate rows based on duplicate column value -

i have big info set looks this:

239617920 0 1 1 1 239617917 0 1 1 1 239617911 1 1 0 1 239617911 1 0 0 1 239617890 0 0 0 1 239617885 1 1 0 1

for each row, want able sum values of columns b, c, d, , e if column values equal, 1 aggregate row. therefore, want output

239617920 0 1 1 1 239617917 0 1 1 1 239617911 2 1 0 2 239617890 0 0 0 1 239617885 1 1 0 1

since have 239617911 listed twice.

is there way in excel?

pivot tables great this, it's not hard same thing using formulas.

assuming info starts in cell a2, come in next in g2, , re-create downwards many rows needed:

=small(a:a,countif(a:a,"<="&g1)+1)

enter next in cell h2, , re-create other summary cells:

=sumif($a:$a,$g2,b:b)

excel

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -