CountIF with array

jakelake

New Member
Joined
Sep 12, 2016
Messages
9
Hello,

I have a table with store names in a row and store items in a column. Based on the quantity of items on hand, I am trying to see how many stores can be serviced. The meat of the table has the quantity each store needs for each item.

I am trying to come up with a count-if formula that will count the store shortages. I have been able to have conditional formatting highlight the shortages automatically. However, I can't figure out how to count the red cells.

it won't let me attach a workbook, so i pasted my table below. I assume I have to do an single-cell array, but I am completely lost. The purple numbers are what I want the formulas to output. Any ideas?

Thank you for your time

ABCDEFG
1 Item QtyStore 1Store 2Store 3Store 4Store 5
2
3 12244
4Item 1 411111
5Item 2411111
6Item 3111111
7Item 4011111

<colgroup><col width="64" span="8" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,172,024
Messages
5,878,783
Members
433,370
Latest member
mcleven

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