ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to calculate sum per category? (https://www.excelbanter.com/excel-worksheet-functions/76459-how-calculate-sum-per-category.html)

praiser

How to calculate sum per category?
 

Hey there

Does anybody know how I can calculate the sum of a range of numbers,
but only if they are in a specific category?

Example table in Excel: look attachment

Thank you very much
Florian Meyer


+-------------------------------------------------------------------+
|Filename: excel.gif |
|Download: http://www.excelforum.com/attachment.php?postid=4437 |
+-------------------------------------------------------------------+

--
praiser
------------------------------------------------------------------------
praiser's Profile: http://www.excelforum.com/member.php...o&userid=32338
View this thread: http://www.excelforum.com/showthread...hreadid=520978


EdMac

How to calculate sum per category?
 

Use SUMIF function

=SUMIF(Source range,criteria,sumrange)

e.g. SUMIF(A1:A6,1,B1:B6)

Ed


--
EdMac
------------------------------------------------------------------------
EdMac's Profile: http://www.excelforum.com/member.php...o&userid=30736
View this thread: http://www.excelforum.com/showthread...hreadid=520978


praiser

How to calculate sum per category?
 

yeah, that's it! thank you very very much! =)


--
praiser
------------------------------------------------------------------------
praiser's Profile: http://www.excelforum.com/member.php...o&userid=32338
View this thread: http://www.excelforum.com/showthread...hreadid=520978



All times are GMT +1. The time now is 09:01 PM.

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