DonnchadhSokol
New Member
- Joined
- Jun 9, 2011
- Messages
- 4
howdy,
i have a table containing three columns:
A: work order
B: part number
C: delivery date
in column D: i'd like to return the part number corresponding to the row with the max date for that work order.
<TABLE style="WIDTH: 336pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=448><COLGROUP><COL style="WIDTH: 60pt; mso-width-source: userset; mso-width-alt: 2925" width=80><COL style="WIDTH: 65pt; mso-width-source: userset; mso-width-alt: 3181" width=87><COL style="WIDTH: 70pt; mso-width-source: userset; mso-width-alt: 3401" width=93><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 93pt; mso-width-source: userset; mso-width-alt: 4534" width=124><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 60pt; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf 0.5pt solid; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 height=17 width=80>
heylp...
Thanks,
Nuk
i have a table containing three columns:
A: work order
B: part number
C: delivery date
in column D: i'd like to return the part number corresponding to the row with the max date for that work order.
<TABLE style="WIDTH: 336pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=448><COLGROUP><COL style="WIDTH: 60pt; mso-width-source: userset; mso-width-alt: 2925" width=80><COL style="WIDTH: 65pt; mso-width-source: userset; mso-width-alt: 3181" width=87><COL style="WIDTH: 70pt; mso-width-source: userset; mso-width-alt: 3401" width=93><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 93pt; mso-width-source: userset; mso-width-alt: 4534" width=124><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 60pt; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf 0.5pt solid; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 height=17 width=80>
A
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; WIDTH: 65pt; BORDER-TOP: #bfbfbf 0.5pt solid; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 width=87>B
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; WIDTH: 70pt; BORDER-TOP: #bfbfbf 0.5pt solid; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 width=93>C
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #bfbfbf 0.5pt solid; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 width=64>D
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; WIDTH: 93pt; BORDER-TOP: #bfbfbf 0.5pt solid; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 width=124>
</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl66 height=17>Work Order
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl66>Part Number
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl67>Delivery Date
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl66>Max Part
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl68>
</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 height=17>wo_1
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69>part_1
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl70 align=right>1/1/2012
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69>part_2
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl68>
</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: yellow; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl71 height=17>wo_1
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl71>part_2
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl72 align=right>2/5/2012
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl71>part_2
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl73><< max date for wo
</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 height=17>wo_1
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69>part_3
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl70 align=right>7/1/2011
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69>part_2
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl68>
</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: yellow; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl71 height=17>wo_2
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl71>part_1
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl72 align=right>2/10/2012
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl71>part_1
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl73><< max date for wo
</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 height=17>wo_2
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69>part_2
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl70 align=right>1/6/2012
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69>part_1
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl68>
</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 height=17>wo_3
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69>part_1
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl70 align=right>7/6/2011
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69>part_3
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl68>
</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69 height=17>wo_3
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69>part_2
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl70 align=right>1/11/2012
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl69>part_3
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: transparent; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl68>
</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf 0.5pt solid; BACKGROUND-COLOR: yellow; HEIGHT: 12.75pt; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl71 height=17>wo_3
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl71>part_3
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl72 align=right>2/15/2012
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl71>part_3
</TD><TD style="BORDER-BOTTOM: #bfbfbf 0.5pt solid; BORDER-LEFT: #bfbfbf; BACKGROUND-COLOR: yellow; BORDER-TOP: #bfbfbf; BORDER-RIGHT: #bfbfbf 0.5pt solid" class=xl73><< max date for wo
</TD></TR></TBODY></TABLE> heylp...
Thanks,
Nuk