Vlookup with Countif Question.

mDgo0d4mE

New Member
Joined
Oct 9, 2017
Messages
9
Hello i was wondering if i could get some help with a count if/vlookup forumula.

  1. Need to look at each direction, first looking at "north" direction in the month of "JAN"
  2. Then need to look at the "NUMBERS" sheet and see how many times does that number matches the one that is in the DATA Column in DETAIL sheet.

i was able to figure out total but i couldnt wrap my head around how many times it matches in the DATA column.
Code:
=COUNTIFS(DETAIL!C:C,"JAN",DETAIL!A:A,"NORTH")
Thanks in advance!



Sheet Name = "DETAIL"
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 74"]
<tbody>[TR]
[TD="width: 74"]DIRECTION[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]DATA[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]MONTHS[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]north
[/TD]
[TD]1[/TD]
[TD]JAN[/TD]
[/TR]
[TR]
[TD]north[/TD]
[TD]2[/TD]
[TD]JAN[/TD]
[/TR]
[TR]
[TD]north[/TD]
[TD]3[/TD]
[TD]FEB[/TD]
[/TR]
[TR]
[TD]south[/TD]
[TD]4[/TD]
[TD]JAN[/TD]
[/TR]
[TR]
[TD]east[/TD]
[TD]5[/TD]
[TD]MAR[/TD]
[/TR]
[TR]
[TD]west[/TD]
[TD]6[/TD]
[TD]MAR[/TD]
[/TR]
</tbody>[/TABLE]

Sheet Name = "REPORT"
[TABLE="width: 500"]
<tbody>[TR]
[TD]NUMBERS[/TD]
[/TR]
[TR]
[TD]1[/TD]
[/TR]
[TR]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[/TR]
[TR]
[TD]0[/TD]
[/TR]
[TR]
[TD]5[/TD]
[/TR]
[TR]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[/TR]
[TR]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hello,

Not sure what you are actually asking. Are you trying to find out how many times the values in the REPORT sheet match the values in the DATA column in the REPORT sheet? If so, try =COUNTIF(DETAIL!B:B,A2)

or Are you trying to find out how many times the values in the DATA column in the REPORT sheet match the values in the REPORT sheet? If so, try =COUNTIF(REPORT!A:A,B2)

or are you after something completely different?
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

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