CountIf

abbotti

New Member
Joined
Apr 18, 2013
Messages
13
Hi, Hope someone can help me. In the table below I need to know how many people worked on the same work order per month based on column C “Number”. The result for Jan would be-WO 1111222333 would have 2 people and WO 3333111222 would have 2 people. I’m using Excel 2007 and trying the “CountIf Function” in column A. Thanks in advance and sorry if I posted in the wrong area. </SPAN>
B C D E</SPAN>
Date</SPAN></SPAN>
Number</SPAN></SPAN>
Name</SPAN></SPAN>
Work Order</SPAN></SPAN>
Jan-13</SPAN></SPAN>
111111</SPAN></SPAN>
John, Snow</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
111111</SPAN></SPAN>
John, Snow</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
111111</SPAN></SPAN>
John, Snow</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
111111</SPAN></SPAN>
John, Snow</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
222222</SPAN></SPAN>
Jane, Dowe</SPAN></SPAN>
3333111222</SPAN></SPAN>
Jan-13</SPAN></SPAN>
222222</SPAN></SPAN>
Jane, Dowe</SPAN></SPAN>
3333111222</SPAN></SPAN>
Jan-13</SPAN></SPAN>
222222</SPAN></SPAN>
Jane, Dowe</SPAN></SPAN>
3333111222</SPAN></SPAN>
Jan-13</SPAN></SPAN>
333333</SPAN></SPAN>
Henery, John</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
333333</SPAN></SPAN>
Henery, John</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
333333</SPAN></SPAN>
Henery, John</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
333333</SPAN></SPAN>
Henery, John</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
333333</SPAN></SPAN>
Henery, John</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
333333</SPAN></SPAN>
Henery, John</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
333333</SPAN></SPAN>
Henery, John</SPAN></SPAN>
1111222333</SPAN></SPAN>
Jan-13</SPAN></SPAN>
444444</SPAN></SPAN>
Elvis, Presley</SPAN></SPAN>
3333111222</SPAN></SPAN>
Jan-13</SPAN></SPAN>
444444</SPAN></SPAN>
Elvis, Presley</SPAN></SPAN>
3333111222</SPAN></SPAN>
Jan-13</SPAN></SPAN>
444444</SPAN></SPAN>
Elvis, Presley</SPAN></SPAN>
3333111222</SPAN></SPAN>
Feb-13</SPAN></SPAN>
555555</SPAN></SPAN>
Stephen, Hawking</SPAN></SPAN>
1111222333</SPAN></SPAN>
Feb-13</SPAN></SPAN>
555555</SPAN></SPAN>
Stephen, Hawking</SPAN></SPAN>
1111222333</SPAN></SPAN>
Feb-13</SPAN></SPAN>
555555</SPAN></SPAN>
Stephen, Hawking</SPAN></SPAN>
1111222333</SPAN></SPAN>
Feb-13</SPAN></SPAN>
555555</SPAN></SPAN>
Stephen, Hawking</SPAN></SPAN>
1111222333</SPAN></SPAN>
Feb-13</SPAN></SPAN>
666666</SPAN></SPAN>
Reese, Witherspoon</SPAN></SPAN>
3333111222</SPAN></SPAN>
Feb-13</SPAN></SPAN>
666666</SPAN></SPAN>
Reese, Witherspoon</SPAN></SPAN>
3333111222</SPAN></SPAN>
Feb-13</SPAN></SPAN>
666666</SPAN></SPAN>
Reese, Witherspoon</SPAN></SPAN>
3333111222</SPAN></SPAN>

<TBODY>
</TBODY>
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

RonB1111

Well-known Member
Joined
Nov 28, 2011
Messages
2,277
If your data is in B2:E25,
enter in F2 1111222333
enter in F3 3333111222
enter in G2 and G3 the date 1/1/2013

Now enter this formula in H2 and copy down to H3:
Code:
=SUMPRODUCT(1/COUNTIFS(C$2:C$25,C$2:C$25),--(B$2:B$25>=G2),--(B$2:B$25<=EOMONTH(G2,0)),--(E$2:E$25=F2))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,389
Messages
5,836,972
Members
430,464
Latest member
nickburrett

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
Top