[英]Excel Column Formula with Conditional Value
I have a summary table like this: 我有一个像这样的汇总表:
Total Pay | Amount Unpaid | Total Left
It is based on a table with the following format: 它基于具有以下格式的表:
Date | Hours | Pay | Paid
... | 5 | 100.00 | Yes
... | 4 | 80.00 | No
... | 6 | 120.00 | Yes
I am trying to create a formula that will fill in the Amount Unpaid
column. 我正在尝试创建一个公式,该公式将填写“
Amount Unpaid
列。
I have this so far which gives me the error: 'Error in Value': 到目前为止,我有这样的错误:“值错误”:
=SUM(IF(Sunshine!E5:E6,Sunshine!D5:D6,0))
You can use the SUMIF
function: 您可以使用
SUMIF
函数:
=SUMIF (E2:E5, "No", D2:D5)
This will add all values in D2:D5, but only if the corresponding row in E2:E5 equals "No". 这将添加D2:D5中的所有值,但前提是E2:E5中的相应行等于“否”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.