Count Number of Cells With Non-Matching Values

masouder

Board Regular
Joined
Jul 5, 2013
Messages
120
Office Version
  1. 2013
Platform
  1. Windows
I have a list of valid names on one sheet. On another sheet, users manually enter names. Ignoring the fact that I can use Data Validation to ensure all entered names are valid, how can I count the number of cells on the second sheet that contain invalid names?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try:

Book2
ABCDE
1Valid NamesEntered Names# of invalid names
2AlChloe3
3BettyErica
4ChloeEd
5DanielMike
6EricaAl
7FredBetty
8Frank
9Chloe
10
Sheet2
Cell Formulas
RangeFormula
E2E2=SUMPRODUCT((C2:C15<>"")*ISERROR(MATCH(C2:C15,A2:A7,0)))
 
Upvote 0
Solution
Eric,

Perfect, thanks. I was trying to make COUNTIF work with VLOOKUP within ISERROR and it just wasn't working. Should have thought of SUMPRODUCT.

Michael Souder
 
Upvote 0

Forum statistics

Threads
1,226,116
Messages
6,189,057
Members
453,523
Latest member
Don Quixote

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