Arrays

MARKEGANDERSON

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

Some videos you may like

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
=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
259
Thanks for the help, but its not working...

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

Anything else?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,822
Messages
5,598,304
Members
414,224
Latest member
Crazy_FC

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