Vlookup

TC123

New Member
Joined
Dec 14, 2010
Messages
32
Hello,

I have one column with numbers ranging from 1 to 11 in it and I have an adjacent column with the number of the month in it (for example, 2 for Feb, 3 for March, 4 for April). The months aren't in any order though and the numbers 1 through to 12 are repeated often. What I want to do is find out how many 1's from the first column are in month 1 in the adjacent column, how many 2's are in month 3 etc. I think I need a VLOOKUP, could anyone advise?

Thank you
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hello,

I have one column with numbers ranging from 1 to 11 in it and I have an adjacent column with the number of the month in it (for example, 2 for Feb, 3 for March, 4 for April). The months aren't in any order though and the numbers 1 through to 12 are repeated often. What I want to do is find out how many 1's from the first column are in month 1 in the adjacent column, how many 2's are in month 3 etc. I think I need a VLOOKUP, could anyone advise?

Thank you
Try one of these...

Let's assume your data is in the range A2:B20.

Use cells to hold the criteria:
  • D2 = 1
  • E2 = 1
This formula will work in any version of Excel:

=SUMPRODUCT(--(A2:A20=D2),--(B2:B20=E2))

This formula will work in Excel 2007 and later:

=COUNTIFS(A2:A20,D2,B2:B20,E2)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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