ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   From Column select Values to sum (https://www.excelbanter.com/excel-worksheet-functions/142477-column-select-values-sum.html)

Fredriksson via OfficeKB.com

From Column select Values to sum
 
Col 1 Col 2
a 1
b 1
c 1
a 1
b 1
a 1
c 1
d 1

I would like a function that will search Col1 for a Value and then sum the
values in Col 2 that have the same value in Col1

in the above example

the sum of a is 3
the sum of b is 2
the sum of c is 2
the sum of d is 1

Can there a function or functions that can do this in excel??

--
Message posted via http://www.officekb.com


Peo Sjoblom

From Column select Values to sum
 
Select Column1 (header and range), do datafilteradvanced filter (don't
filter column 2 just 1), select copy to another location and unique records
only, that will give you a

header
a
b
c
d


now in the adjacent cell to the right of the cell with a, assume you copied
it to h1 then a would be in H2, so in I2 put

=SUMIF($A$2:$A$100,H2,$B$2:$B$100)



where A2:A100 is column 1 and B2:B100 is column 2

copy down as long as needed



--
Regards,

Peo Sjoblom



"Fredriksson via OfficeKB.com" <u27002@uwe wrote in message
news:7206c5201a61b@uwe...
Col 1 Col 2
a 1
b 1
c 1
a 1
b 1
a 1
c 1
d 1

I would like a function that will search Col1 for a Value and then sum the
values in Col 2 that have the same value in Col1

in the above example

the sum of a is 3
the sum of b is 2
the sum of c is 2
the sum of d is 1

Can there a function or functions that can do this in excel??

--
Message posted via http://www.officekb.com




Fredriksson via OfficeKB.com

From Column select Values to sum
 
Thanks

Peo Sjoblom wrote:
Select Column1 (header and range), do datafilteradvanced filter (don't
filter column 2 just 1), select copy to another location and unique records
only, that will give you a

header
a
b
c
d

now in the adjacent cell to the right of the cell with a, assume you copied
it to h1 then a would be in H2, so in I2 put

=SUMIF($A$2:$A$100,H2,$B$2:$B$100)

where A2:A100 is column 1 and B2:B100 is column 2

copy down as long as needed

Col 1 Col 2
a 1

[quoted text clipped - 17 lines]

Can there a function or functions that can do this in excel??


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200705/1



All times are GMT +1. The time now is 01:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com