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

前端 未结 3 975
礼貌的吻别
礼貌的吻别 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:22

    If column A contains the amounts to be reimbursed, and column B contains the "yes/no" indicating whether the reimbursement has been made, then either of the following will work, though the first option is recommended:

    =SUMIF(B:B,"No",A:A)
    

    or

    =SUMIFS(A:A,B:B,"No")
    

    Here is an example that will display the amounts paid and outstanding for a small set of sample data.

     A         B            C                   D
     Amount    Reimbursed?  Total Paid:         =SUMIF(B:B,"Yes",A:A)
     $100      Yes          Total Outstanding:  =SUMIF(B:B,"No",A:A)
     $200      No           
     $300      No
     $400      Yes
     $500      No
    

    Result of Excel calculations

提交回复
热议问题