ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to sum items from column A only if Column B row equals X (https://www.excelbanter.com/excel-worksheet-functions/45911-how-sum-items-column-only-if-column-b-row-equals-x.html)

BM

How to sum items from column A only if Column B row equals X
 
Hi all,

Here's an example of whan I'm trying to do:

Column A Column B
1 Add
2 Don't
3 Add
4 Don't


Add values in Column A if the cell to the left of them equals "Add" ...
result should be 4


Any help would be appreciated.

Blue



Bob Phillips

=SUMIF(B1:B4,"Add",A1:A4)

--
HTH

Bob Phillips

"BM" wrote in message
...
Hi all,

Here's an example of whan I'm trying to do:

Column A Column B
1 Add
2 Don't
3 Add
4 Don't


Add values in Column A if the cell to the left of them equals "Add" ...
result should be 4


Any help would be appreciated.

Blue






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

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