Counting results of ISERROR

annabarbara

New Member
Joined
Oct 14, 2002
Messages
20
This must be a really easy one.I have the following formula in column C
=IF(ISERROR(MATCH($B2,$A$2:$A$150,0)),B2,"").
I then want to count the number of items found but COUNTA does not work. What do I use ?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

SimonP

New Member
Joined
Sep 25, 2002
Messages
48
You could use an array formula to count the cells in column C that are not blank:

=sum((C2:C150<>"")*1)

Remember to enter the formula using Ctrl + Shift + Enter or it wont work.

Simon
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
On 2002-11-05 11:35, annabarbara wrote:
This must be a really easy one.I have the following formula in column C
=IF(ISERROR(MATCH($B2,$A$2:$A$150,0)),B2,"").
I then want to count the number of items found but COUNTA does not work. What do I use ?

=ROWS($C$2:$C$150)-COUNTBLANK($C$2:$C$150)

You say: "I then want to count the number of items found," but your match formula produces in C the B-values which are not found in A.
 

Forum statistics

Threads
1,144,049
Messages
5,722,227
Members
422,417
Latest member
Johhny

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