ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Add cells in column depending on value of cells in another column (https://www.excelbanter.com/excel-discussion-misc-queries/149588-add-cells-column-depending-value-cells-another-column.html)

CDBallard

Add cells in column depending on value of cells in another column
 
One column has the status (open or closed). Another column has a $ amount.
I want to be able to sort on any column and still have a total of each
status. I tried =Sum(G2:G358)*If(F2:F358, "Open") - but that did not work.

bj

Add cells in column depending on value of cells in another column
 
try
=sumif(f2:f358,"Open",G2:G358)

"CDBallard" wrote:

One column has the status (open or closed). Another column has a $ amount.
I want to be able to sort on any column and still have a total of each
status. I tried =Sum(G2:G358)*If(F2:F358, "Open") - but that did not work.



All times are GMT +1. The time now is 02:40 AM.

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