vlookup, match? what do I use?

S

Sojo

Please help. Here a a sample of my data:

Table 1 Table 2
A B A B
C D
1 id category id MT JL OT
2 41 MT 41
3 41 JL 45
4 41 MT 47
5 41 JL 53
6 45 JL 54
7 45 JL 55
8 45 MT 56
9 45 MT 57

I want excel to lookup "Table 2 A2" in "Table 1 A:A" (which has 1493 rows of
data). If it finds a match I want it to count the number of Table 2 B1 that
appear under that match and put the answer in Table B2. I will repeat this
for C1, D1 etc.
 
B

Bob Phillips

=COUNTIF(Table1!A:A,A2)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
P

PapaDos

Enter that formula in Table2 cell B2
=SUMPRODUCT( ( 'Table 1'!$A$2:$A$1500 = $A2 ) * ( 'Table 1'!$B$2:$B$1500 =
B$1 ) )

"Drag-fill" as needed...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top