Vlookup, Match, Count

camle

Board Regular
Joined
Jan 10, 2013
Messages
216
I am looking for a way to look in a table or list and count if they match.
Ex.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]American Pickers
[/TD]
[TD]2011x01
[/TD]
[TD]2011
[/TD]
[/TR]
[TR]
[TD]American Pickers
[/TD]
[TD]2011x02
[/TD]
[TD]2011
[/TD]
[/TR]
[TR]
[TD]American Pickers
[/TD]
[TD]2012x01
[/TD]
[TD]2012
[/TD]
[/TR]
[TR]
[TD]American Pickers
[/TD]
[TD]2012x02
[/TD]
[TD]2012
[/TD]
[/TR]
[TR]
[TD]American Pickers
[/TD]
[TD]2012x03
[/TD]
[TD]2012
[/TD]
[/TR]
[TR]
[TD]Bones
[/TD]
[TD]9x01
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]Bones
[/TD]
[TD]9x02
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]Bones
[/TD]
[TD]9x02
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]Bones
[/TD]
[TD]9x02
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]Bones
[/TD]
[TD]10x01
[/TD]
[TD]10
[/TD]
[/TR]
</tbody>[/TABLE]

Output should be:
American Pickers
2011=2
2012=3

Bones:
9=4
10=1

Hope I explain well enough.
Thanks
 
Try this. Its working for me.

=COUNTIFS(Sheet2!$B$2:$B$11,Sheet1!B$2,Sheet2!$D$2:$D$11,Sheet1!B6)

Sheet 1 is American Picker Tab and Sheet 2 is Get Files Tab. Hope this helps.
 
Upvote 0
@shahfahad

the syntax of the formula looks wrong to me.

Code:
=VLOOKUP(Workbook1,$A$1:$C$10!Worbook2,3,0)
 
Upvote 0
Try this. Its working for me.

=COUNTIFS(Sheet2!$B$2:$B$11,Sheet1!B$2,Sheet2!$D$2:$D$11,Sheet1!B6)

Sheet 1 is American Picker Tab and Sheet 2 is Get Files Tab. Hope this helps.



Looks promising,
I didn't understand the Sheet2!$B$2:$B$11 Sheet2!$D$2:$D$11
I did GetFiles!A1:A122 GetFiles!C1:C122

1st range is looking for American Picker in the 1st column
2nd range is looking for Season (2010) in the 3rd column
Then the 1st Criteria "2010"
2nd criteria "22"
Right?

Why do i get "0"

I tried to post a picture of the formula to show what it is doing but it won't let me.



Thanks
 
Upvote 0
@shahfahad

the syntax of the formula looks wrong to me.

Code:
=VLOOKUP(Workbook1,$A$1:$C$10!Worbook2,3,0)

For some reason I can't get this one to work, I get errors

Also how does this formula count?

I'm a lightweight in the excel world?
Want to learn as mush as possible

Thanks
 
Upvote 0
For some reason I can't get this one to work, I get errors

Also how does this formula count?

I'm a lightweight in the excel world?
Want to learn as mush as possible

Thanks

Never mind I see what I did.

=COUNTIFS(GetFiles!$D$1:$D$5000,$A$1,GetFiles!$F$1:$F$5000,A4)

it is working GREAT!!

Thanks for all you guys help
 
Upvote 0
Thanks for the reply.

Glad I could help you.

Even better you learned something new today. :)
 
Upvote 0

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