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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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))
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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