Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Sum rows based on first field

Posted on 2013-06-18
2
Medium Priority
?
135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Shanan212 earned 1350 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

610 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