Thanks. That worked perfectly. Have couple more questions?
Some new requirements, see sample raw data and results needed below. Requirements are: <TABLE style="WIDTH: 330pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=440><COLGROUP>
<COL style="WIDTH: 330pt; mso-width-source: userset; mso-width-alt: 16091" width=440><TBODY><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 330pt; HEIGHT: 15pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl66 height=20 width=440>
1. Only look at WorkOrderType = IN or UP
</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 330pt; HEIGHT: 15pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl66 height=20 width=440>
2. Only look at Total Revenue > 0</TD></TR><TR style="HEIGHT: 30pt" height=40><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 330pt; HEIGHT: 30pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl65 height=40 width=440>
3. No. of Errors = Number of accounts per employee per day with positive amount in Total Revenue Column
4. Default for No. of Errors column = 0
5. Need a record for each Sales Rep ID per day
</TD></TR></TBODY></TABLE>
Sample raw data:
<TABLE style="WIDTH: 336pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=446><COLGROUP><COL style="WIDTH: 62pt; mso-width-source: userset; mso-width-alt: 2998" width=82><COL style="WIDTH: 75pt; mso-width-source: userset; mso-width-alt: 3657" width=100><COL style="WIDTH: 77pt; mso-width-source: userset; mso-width-alt: 3730" width=102><COL style="WIDTH: 58pt; mso-width-source: userset; mso-width-alt: 2816" width=77><COL style="WIDTH: 64pt; mso-width-source: userset; mso-width-alt: 3108" width=85><TBODY><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; BACKGROUND-COLOR: #cfe0f1; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #dddddd 0.5pt solid; BORDER-RIGHT: black 1pt solid" dir=ltr class=xl70 height=16 width=82>
Sales Rep ID</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #cfe0f1; WIDTH: 75pt; BORDER-TOP: #dddddd 0.5pt solid; BORDER-RIGHT: black 1pt solid" dir=ltr class=xl70 width=100>
Account Number</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #cfe0f1; WIDTH: 77pt; BORDER-TOP: #dddddd 0.5pt solid; BORDER-RIGHT: black 1pt solid" dir=ltr class=xl70 width=102>
Work Order Type</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #cfe0f1; WIDTH: 58pt; BORDER-TOP: #dddddd 0.5pt solid; BORDER-RIGHT: black 1pt solid" dir=ltr class=xl70 width=77>
Date Entered</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #cfe0f1; WIDTH: 64pt; BORDER-TOP: #dddddd 0.5pt solid; BORDER-RIGHT: black 1pt solid" dir=ltr class=xl70 width=85>
Total Revenue</TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f7f7f7; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl66 height=16 width=82>
32113</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f7f7f7; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl66 width=100>
572367701</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f7f7f7; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl67 width=102>
IN</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f7f7f7; WIDTH: 58pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl68 width=77>
6/28/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f7f7f7; WIDTH: 64pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl69 width=85>
$0.00 </TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 height=16 width=82>
32113</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 width=100>
572367701</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl72 width=102>
DW</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 58pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl73 width=77>
6/28/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 64pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl74 width=85>
$3.00 </TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 height=16 width=82>
32113</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 width=100>
572367701</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl72 width=102>
UP</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 58pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl73 width=77>
6/28/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 64pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl74 width=85>
$2.00 </TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 height=16 width=82>
32113</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 width=100>
572367701</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl72 width=102>
UP</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 58pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl73 width=77>
6/29/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 64pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl74 width=85>
$8.00 </TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 height=16 width=82>
32113</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 width=100>
866934801</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl72 width=102>
DW</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 58pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl73 width=77>
6/28/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 64pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl74 width=85>
$4.00 </TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 height=16 width=82>
32113</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 width=100>
866934801</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl72 width=102>
IN</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 58pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl73 width=77>
6/28/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 64pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl74 width=85>
$4.00 </TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 height=16 width=82>
32113</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 width=100>
355005901</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl72 width=102>
IN</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 58pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl73 width=77>
7/1/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 64pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl74 width=85>
$0.00 </TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 height=16 width=82>
82663</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 width=100>
922005904</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl72 width=102>
UP</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 58pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl73 width=77>
6/21/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 64pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl74 width=85>
$4.00 </TD></TR></TBODY></TABLE>
Need to get to the following result:
<TABLE style="WIDTH: 214pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=284><COLGROUP><COL style="WIDTH: 62pt; mso-width-source: userset; mso-width-alt: 2998" width=82><COL style="WIDTH: 75pt; mso-width-source: userset; mso-width-alt: 3657" width=100><COL style="WIDTH: 77pt; mso-width-source: userset; mso-width-alt: 3730" width=102><TBODY><TR style="HEIGHT: 23.25pt" height=31><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; BACKGROUND-COLOR: #cfe0f1; WIDTH: 62pt; HEIGHT: 23.25pt; BORDER-TOP: #dddddd 0.5pt solid; BORDER-RIGHT: black 1pt solid" dir=ltr class=xl68 height=31 width=82>
Sales Rep ID</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #cfe0f1; WIDTH: 75pt; BORDER-TOP: #dddddd 0.5pt solid; BORDER-RIGHT: black 1pt solid" dir=ltr class=xl68 width=100>
Date</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #cfe0f1; WIDTH: 77pt; BORDER-TOP: #dddddd 0.5pt solid; BORDER-RIGHT: black 1pt solid" dir=ltr class=xl68 width=102>
Number of Errors</TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f7f7f7; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl66 height=16 width=82>
32113</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f7f7f7; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl71 width=100>
6/28/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f7f7f7; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl67 width=102>
2</TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl69 height=16 width=82>
32113</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl72 width=100>
6/29/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl70 width=102>
1</TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl69 height=16 width=82>
32113</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl72 width=100>
7/1/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl70 width=102>
0</TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl69 height=16 width=82>
82663</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl72 width=100>
6/21/2011</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 77pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #cccccc 1pt solid" dir=ltr class=xl70 width=102>
1</TD></TR></TBODY></TABLE>