ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Array Formula with AND operator (https://www.excelbanter.com/excel-worksheet-functions/99614-array-formula-operator.html)

edwardpestian

Array Formula with AND operator
 

I have the following array formula that works correctly as long as the
range
I16:I39 has data in it; however there may be times when cells in that
range are set to blank via another formula. When this happens, I get
an error.


Code:
--------------------

=SUM((E16:E39TODAY()-180)*(E16:E39<=TODAY())*(I16:I39<"")*(I16:I39))*8


--------------------


Thanks.

-ep


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=561957


edwardpestian

Array Formula with AND operator
 

Okay, I got it..


Code:
--------------------


=SUM(IF((E16:E39TODAY()-180)*(E16:E39<=TODAY())*(I16:I39<""),(I16:I39),0) )*8


--------------------


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=561957



All times are GMT +1. The time now is 06:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com