Arrays

MARKEGANDERSON

Active Member
Joined
Apr 7, 2007
Messages
263
=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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
=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))
 

MARKEGANDERSON

Active Member
Joined
Apr 7, 2007
Messages
263
Thanks for the help, but its not working...

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

Anything else?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,651
Messages
5,854,958
Members
431,689
Latest member
jacker01

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
Top