In Excel, sum all values in one column in each row where another column is a specific value

前端 未结 3 1052
礼貌的吻别
礼貌的吻别 2021-01-31 14:37

I\'m wondering if there is an easy way to do what I\'m looking for. Basically, I have a balance sheet in Excel 2011 with a bunch of data. One specific piece of information I alw

3条回答
  •  不要未来只要你来
    2021-01-31 15:10

    You could do this using SUMIF. This allows you to SUM a value in a cell IF a value in another cell meets the specified criteria. Here's an example:

     -   A         B
     1   100       YES
     2   100       YES
     3   100       NO
    

    Using the formula: =SUMIF(B1:B3, "YES", A1:A3), you will get the result of 200.

    Here's a screenshot of a working example I just did in Excel:

    Excel SUMIF Example

提交回复
热议问题