Countif List 1 is in List 2

p9j123

Active Member
Joined
Apr 15, 2014
Messages
288
Office Version
  1. 2013
Platform
  1. Windows
I need help in creating the formula that will count how many from my List 1 are in List 2.


Something like this.


=countif(List2,List1)


List 2 is in Sheet3 Column A, this is a fixed list meaning it is not changing.


List 1 in in Sheet1 column J, it is active, it is changing from time to time.


My formula shoud be in A20, on the example below the formula should return 2 because R and S1 from List 1 is on List 2.

Thank you in advance

[TABLE="width: 170"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]List 1[/TD]
[TD][/TD]
[TD]List 2[/TD]
[/TR]
[TR]
[TD]GF3[/TD]
[TD][/TD]
[TD]C1[/TD]
[/TR]
[TR]
[TD]H2[/TD]
[TD][/TD]
[TD]C2[/TD]
[/TR]
[TR]
[TD]NWL[/TD]
[TD][/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]R[/TD]
[TD][/TD]
[TD]P1C[/TD]
[/TR]
[TR]
[TD]S1[/TD]
[TD][/TD]
[TD]P1R[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]P2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]P2R[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]R[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]R2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]S1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]S1P1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]S1P2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]S2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]S3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]S4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]WGO[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Assuming your list is in Column A and B.

=SUM(--ISNUMBER(MATCH(A2:A18,B2:B18,0)))

Confirm with CTRL-SHIFT-ENTER rather than just Enter.


Excel 2010
AB
1List 1List 2
2GF3C1
3H2C2
4NWLP1
5RP1C
6S1P1R
7P2
8P2R
9R
10R2
11S1
12S1P1
13S1P2
14S2
15S3
16S4
17WGO
18
19
202
Sheet1
Cell Formulas
RangeFormula
A20{=SUM(--ISNUMBER(MATCH(A2:A18,B2:B18,0)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,748
Messages
6,180,721
Members
452,995
Latest member
isldboy

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