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
Medium Priority
135 Views
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

James
0
[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

LVL 13

Accepted Solution

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)
``````

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

Pivot table is highly recommended though!
0

Author Closing Comment

ID: 39261324
The pivot table idea worked
0

## Featured Post

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…
###### Suggested Courses
Course of the Month7 days, 21 hours left to enroll

#### 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.