简体   繁体   中英

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.

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.

Here is my IF statement

=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)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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