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"
DIRECTION

<tbody>
</tbody>
DATA
MONTHS

<tbody>
</tbody>
north
1JAN
north2JAN
north3FEB
south4JAN
east5MAR
west6MAR

<tbody>
</tbody>

Sheet Name = "REPORT"
NUMBERS
1
0
1
0
5
FALSE
0
3
0

<tbody>
</tbody>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,215,261
Messages
6,123,931
Members
449,134
Latest member
NickWBA

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