Array formula question

Spraggs

Well-known Member
Joined
Jan 19, 2007
Messages
704
Good morning all.
I have an array formula shown below..
=SUMPRODUCT(--ISNUMBER(MATCH(MID($F$2:$F$1001,6,3),{"QSE","CHO"},0)),--($D$2:$D$1001="1042"),--($B$2:$B$1001>TODAY()-7))

I'm after adding to this an IF statement.
If R1 >S1,"",above array formula.
Is this possible and if so how would it be entered.

Thanks Jase
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Good morning all.
I have an array formula shown below..
=SUMPRODUCT(--ISNUMBER(MATCH(MID($F$2:$F$1001,6,3),{"QSE","CHO"},0)),--($D$2:$D$1001="1042"),--($B$2:$B$1001>TODAY()-7))

I'm after adding to this an IF statement.
If R1 >S1,"",above array formula.
Is this possible and if so how would it be entered.

Thanks Jase

Is it not just...

=IF(R1 > S1, "", SUMPRODUCT(...))

then?
 
Upvote 0
Thanks Aladin, my only confusion is because the sumproduct is an array formula.

SumProduct is indeed a range-to-array processing function and does not need control+shift+enter. Thus, while

=IF(R1 > S1, "", SUMPRODUCT(...))

does not require control+shift+enter, the following
Code:
=IF(R1 > S1, "", 
     SUM(
        IF(ISNUMBER(MATCH(MID($F$2:$F$1001,6,3),{"QSE","CHO"},0)),
        IF($D$2:$D$1001="1042",
        IF($B$2:$B$1001>TODAY()-7,
          1)))))

would.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top