I am trying to use a spilled range as criteria in the COUNTIFS function but the result I am getting is a blank spilled range and it's not working the way I want it to.
So I want the code to spit out the corresponding value under the column [Base] if the value under [Originator] and [Beneficiary] matches any of the values in the fixed spilled range $BQ$40#, the value under column [IN/OUT] matches "IN", the value under column [Type] matches any of the values in the fixed array $BW$3:$BW$30 in sheet IP and the value under column [Channel], matches any of the values in the fixed array $BX$3:$BX in sheet IP. Otherwise, it should just leave the cell blank.
I used this code which sits in the sheet PA going from the cell CA30 to CA100.
=IFS(Table23[@[Date]]="","",COUNTIFS(Table23[@[Originator]],$BQ$40#,Table23[@[Beneficiary]],$BQ$40#,Table23[@[IN/OUT]],"IN",Table23[@[Type]],'IP'!$BW$3:$BW$30,Table23[@[Channel]],'IP'!$BX$3:$BX$30),Table23[@[Base]],TRUE,"")
What am I doing wrong here? How do I fix this? Any help will be appreciated. TIA.