Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default vlookup, match? what do I use?

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default vlookup, match? what do I use?

=COUNTIF(Table1!A:A,A2)

--
HTH

Bob Phillips

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

"Sojo" wrote in message
...
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.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 208
Default vlookup, match? what do I use?

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...
--
Festina Lente


"Sojo" wrote:

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP and LEFT to match text? LTUser54 Excel Worksheet Functions 6 May 23rd 06 08:33 PM
VLOOKUP and LEN/ISNA to match names? LTUser54 Excel Worksheet Functions 6 May 22nd 06 09:08 PM
Vlookup? to match column in two sheets researcy Excel Discussion (Misc queries) 2 February 27th 06 05:58 PM
vlookup worksheet match in macro Joe Excel Worksheet Functions 0 February 12th 06 12:01 AM
Vlookup returns incorrect match Smichaud Excel Discussion (Misc queries) 2 November 30th 04 10:51 AM


All times are GMT +1. The time now is 07:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"