简体   繁体   中英

Apply complicated IF formula on column

如何将以下公式应用于列而不拖动它:

=IF(J:J = "", "", SUMIFS(D:D, B:B, J:J, C:C, "In") - SUMIFS(D:D, B:B, J:J, C:C, "Out"))

但是,作为一种解决方法,您应该能够像这样在SUMIF中合并条件

=ArrayFormula(if(J:J="","",sumif(B:B&C:C,J:J&"In",D:D)-sumif(B:B&C:C,J:J&"Out",D:D)))

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