Solved

Sum rows based on first field

Posted on 2013-06-18
2
128 Views
Last Modified: 2013-06-19
Hi,

I'm looking for a way to sum all the other columns in my spreadsheet based on the value of the first column.

So, for example, if I have this spreadsheet (I've used commas to mark the column divisions)

A0001,10,11,40
A0001,20,15,33
A0002,17,12,10
A0003,22,33,44
A0003,20,30,40

I'd like to add the rows where the first column matches and get:

A0001,30,26,73
A0002,17,12,10
A0003,42,63,84

Thanks in advance!

James
0
Comment
Question by:jrmcanada2
2 Comments
 
LVL 13

Accepted Solution

by:
Shanan212 earned 450 total points
ID: 39257013
=SUMIF($A:$A,A1,$B:$B)+SUMIF($A:$A,A1,$C:$C)+SUMIF($A:$A,A1,$D:$D)

Open in new window


The column B:B, C:C, D:D are where your values are.

Pivot table is highly recommended though!
0
 

Author Closing Comment

by:jrmcanada2
ID: 39261324
The pivot table idea worked
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Easy Excel formula needed 4 27
Excel 2016 formulas 5 30
How do I crate a Pivot table in Excel 2 10
Need quick fix on defining a variable 5 0
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now