Solved

Sum rows based on first field

Posted on 2013-06-18
2
130 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

829 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