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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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