Array formula not counting correctly

ariel20029

Board Regular
Joined
Jun 20, 2013
Messages
97
Hi all,
I copied an array formula for median and changed it to count. For some reason the count is off by one. I double checked the range. I manually checked the count and there are only 2 distributors in the population but the formula is showing 3. And the End Customer/Partner is short by 1.

Please help.
Sharon

=COUNT(IF(($A25:$A223="End Customer")+($A25:$A223="Partner"),$G25:$G223))


=COUNT(IF(($A25:$A223="Distributor"),$G25:$G223),0)
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
=SUMPRODUCT(--(ISNUMBER(MATCH($A25:$A223,{"End Customer","Partner"},0))))
=COUNTIF($A25:$A223,"Distributor")
 
Upvote 0
Hi- I need it to count column G not column A - A has the description, but G has the field I need to count as some are blank in column G). thanks,
Sharon
 
Upvote 0
It's helpful if you provide a small sample of your data with desired results...
PHP:
=SUMPRODUCT(--(ISNUMBER(MATCH($A25:$A223,{"End Customer","Partner"},0))),--($G25:$G223<>""))
PHP:
 =SUMPRODUCT(--($A25:$A223="Distributor"),--($G25:$G223<>""))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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