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

List 1List 2
GF3C1
H2C2
NWLP1
RP1C
S1P1R
P2
P2R
R
R2
S1
S1P1
S1P2
S2
S3
S4
WGO

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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,214,787
Messages
6,121,558
Members
449,038
Latest member
Guest1337

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