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>
 

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

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))
 

Watch MrExcel Video

Forum statistics

Threads
1,123,307
Messages
5,600,869
Members
414,411
Latest member
Snowmanaus

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