Arrays

MARKEGANDERSON

Active Member
Joined
Apr 7, 2007
Messages
264
=SUMPRODUCT(--('Data Page'!A4:A11822="Afghan"),--('Data Page'!F4:F11822="GEN-CAP")+('Data Page'!F4:F11822="GEN-GFE")+('Data Page'!F4:F11822="GEN-AG"),--('Data Page'!H4:H11822="NMC"),--('Data Page'!Y4:Y11822="100")+('Data Page'!Y4:Y11822="149"))

Hello all,

My last 2 arrays: I want to count all my above criteria if Data Page'!Y4:Y11822 is 100 or more but less than 149.

How can I do that?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
=SUMPRODUCT(--('Data Page'!A4:A11822="Afghan"),--('Data Page'!F4:F11822="GEN-CAP")+('Data Page'!F4:F11822="GEN-GFE")+('Data Page'!F4:F11822="GEN-AG"),--('Data Page'!H4:H11822="NMC"),--('Data Page'!Y4:Y11822="100")+('Data Page'!Y4:Y11822="149"))

Hello all,

My last 2 arrays: I want to count all my above criteria if Data Page'!Y4:Y11822 is 100 or more but less than 149.

How can I do that?

Try...

Code:
=SUMPRODUCT(
   --('Data Page'!A4:A11822="Afghan"),
   --ISNUMBER(MATCH('Data Page'!F4:F11822,
        {"GEN-CAP","GEN-GFE","GEN-AG"},0)),
   --('Data Page'!H4:H11822="NMC"),
   --('Data Page'!Y4:Y11822>=100),
   --('Data Page'!Y4:Y11822<=149))
 
Upvote 0
Thanks for the help, but its not working...

Excel propose a correction(eliminating the commas for the last 2 arrays...

Anything else?
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,749
Members
449,050
Latest member
excelknuckles

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