简体   繁体   English

如何在IF语句中添加值

[英]How to add values in an IF statement

I've got some if statements where the true element is a timed value - there is a column of 5 if statements and of these 3 have been returned with a time. 我有一些if语句,其中true元素是一个定时值-if语句中有5列,而这3列中已经返回了一个时间。

I would then like to take the values that are now sitting in the column and give myself a grand total but Excel doesn't seem to be letting me do this, is this at all possible. 然后,我想获取列中的值并给自己一个总计,但是Excel似乎不允许我这样做,这是否有可能。

Here is my IF statement 这是我的IF声明

=IF(B3="YES","1:19:12","") 1:19:12
=IF(E3="YES","1:26:14","") 1:26:14
=IF(C3="YES","0:54:24","") 0:54:24

So what I would like is there to be an autosum value of approx 3:40:00 (give or take a few minutes for the exact calculation) 因此,我希望有一个约3:40:00的自动求和值(请花几分钟时间进行精确计算)

没关系,我已经解决了-然后我获取了这些时间值,并使用Sum if语句创建了第三个表,并将它们作为总秒数计算出来-这使我获得了总时间

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM