need a formula

RSEKAR

Board Regular
Joined
Oct 18, 2010
Messages
172
Dear Sir,
I have text (names) in the column A and B of a sheet.
I use the following formula in the conditional formatting to find out the names in the A column which is not found in the B column.
=COUNTIF($B10:$B1000,$A10)=0<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Now I want to count the names in the A column which is not found in the B column.
I need a formula for counting the names in A column which are not found in the B column.
Thanking you in advance.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Dear Sir,
I have text (names) in the column A and B of a sheet.
I use the following formula in the conditional formatting to find out the names in the A column which is not found in the B column.
=COUNTIF($B10:$B1000,$A10)=0<!--?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /--><o:p></o:p>
Now I want to count the names in the A column which is not found in the B column.
I need a formula for counting the names in A column which are not found in the B column.
Thanking you in advance.

Try...

=SUMPRODUCT(1-ISNUMBER(MATCH($A$10:$A$400,$B$10:$B$1000,0)))
 
Upvote 0
Dear Sir,
I have text (names) in the column A and B of a sheet.
I use the following formula in the conditional formatting to find out the names in the A column which is not found in the B column.
=COUNTIF($B10:$B1000,$A10)=0<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Now I want to count the names in the A column which is not found in the B column.
I need a formula for counting the names in A column which are not found in the B column.
Thanking you in advance.
Try this...

=SUMPRODUCT(--(ISNA(MATCH(A10:A100,B10:B100,0))))

Adjust the ranges to suit.
 
Upvote 0
Dear Sir,
For testing purpose I have just entered 5 names in A column and same 5 names are entered in B column below the 10<SUP>th</SUP> row and deleted one name in the B column. So in the A column there is 1 name not found in the B column. I have entered your formula above the 10<SUP>th</SUP> row in both A and B column. I get the value as 386
=SUMPRODUCT(1-ISNUMBER(MATCH($A$10:$A$400,$B$10:$B$1000,0)))<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
For the formula given below I get the value as 986<o:p></o:p>
=SUMPRODUCT(1-ISNUMBER(MATCH($A$10:$A$1000,$B$10:$B$1000,0)))<o:p></o:p>
I should get the value as 1.<o:p></o:p>
I use Excel 2002 and OS XP.<o:p></o:p>
Kindly advice.<o:p></o:p>
 
Upvote 0
Dear T.Valko,Sir
For your formula I get the value as 86
=SUMPRODUCT(--(ISNA(MATCH(A10:A100,B10:B100,0))))<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Kindly advice
 
Upvote 0
Dear T.Valko,Sir
For your formula I get the value as 86
=SUMPRODUCT(--(ISNA(MATCH(A10:A100,B10:B100,0))))<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Kindly advice
Is 86 correct?

Let's assume this is your data:

Book1
AB
1Name1name2
2Name2name4
3Name3name5
4Name4name6
5Name5name8
6Name6name12
7Name7name13
8Name8
9Name9
10Name10
11Name11
12Name12
13Name13
14Name14
Sheet1


The cells highlighted in green are the cells being counted. They are the names that don't appear in column B.

=SUMPRODUCT(--(ISNA(MATCH(A1:A14,B1:B7,0))))

=7
 
Upvote 0
Dear T.Valko,Sir
For your formula I get the value as 86
=SUMPRODUCT(--(ISNA(MATCH(A10:A100,B10:B100,0))))<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Kindly advice

Hi RSEKAR

Can it be that you have empty cells in the range A10:A100?

If that's the case you can add the test for ex. in Biff's formula:

=SUMPRODUCT((A10:A100<>"")*(ISNA(MATCH(A10:A100,B10:B100,0))))
 
Upvote 0
Dear Mr.Aladin Akyurek, Mr.T.Valko, Mr. Pgc01. Mr. dewanna,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
=SUMPRODUCT(($A$10:$A$1000<>"")*(ISNA(MATCH($A$10:$A$1000,$E$10:$E$1000,0))))<o:p></o:p>
(range edited to suit my need)
The above formula given by Mr.Pgc01 suits my requirement. Formula is working well.
Thanking you all for trying to find out the formula for my requirements
 
Upvote 0
Dear Sir,
For testing purpose I have just entered 5 names in A column and same 5 names are entered in B column below the 10<sup>th</sup> row and deleted one name in the B column. So in the A column there is 1 name not found in the B column. I have entered your formula above the 10<sup>th</sup> row in both A and B column. I get the value as 386
=SUMPRODUCT(1-ISNUMBER(MATCH($A$10:$A$400,$B$10:$B$1000,0)))<!--?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /--><o:p></o:p>
For the formula given below I get the value as 986<o:p></o:p>
=SUMPRODUCT(1-ISNUMBER(MATCH($A$10:$A$1000,$B$10:$B$1000,0)))<o:p></o:p>
I should get the value as 1.<o:p></o:p>
I use Excel 2002 and OS XP.<o:p></o:p>
Kindly advice.<o:p></o:p>

Keeping the style...

=SUMPRODUCT(1-($A$10:$A$1000=""),1-ISNUMBER(MATCH($A$10:$A$1000,$B$10:$B$1000,0)))
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

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