Qelvin
Qelvin

Reputation: 13

Filter duplicate values in Google Spreadsheets

I have the following table:

[example]

1

How can I make a new table where all the duplicates are merged and the values are added together so I have a total per name ?

Upvotes: 0

Views: 44

Answers (2)

Spacewink
Spacewink

Reputation: 157

name    value
A   34
B   25
A   18
C   14
B   16
A   9
B   4
C   9

name    value
A   61
B   45
C   23

A:

SELECT name, SUM(value)
FROM tableName
GROUP BY name

Upvotes: 1

player0
player0

Reputation: 1

use:

=QUERY(V:X; "select V,sum(W),sum(X) where V is not null group by V")

Upvotes: 0

Related Questions