Where you description is column A and you count is column B
=INDEX(A:A,MATCH(DMAX(A1:B7,"CNT",B1:B7),B1:B7),0)
One downside.... Possible problem if you have 2 of the same counts (column b)
CNT is the heading I put above column B ("name" is what I used for column a)
Name CNT
apple a 135
pear a 96
cherry a 112
apple b 75
pear b 76.8
apple c 45
Thanks very much for your help but I made a mistake in my original post. I'll need to rephrase my question: In the following table which of
each tree has the maximum profit?
<TABLE style="WIDTH: 170pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=227><COLGROUP><COL style="WIDTH: 48pt" span=3 width=64><COL style="WIDTH: 26pt; mso-width-source: userset; mso-width-alt: 1280" width=35><TBODY><TR style="HEIGHT: 18.75pt; mso-height-source: userset" height=25><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; HEIGHT: 18.75pt; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: #ece9d8" class=xl75 height=25 width=64>
Tree</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: #ece9d8" class=xl76 width=64>
Part</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: #ece9d8" class=xl76 width=64>
Profit</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 26pt; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: windowtext 1pt solid" class=xl77 width=35></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: white; WIDTH: 48pt; HEIGHT: 13.5pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl72 height=18 width=64>
Apple</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl66 width=64>
A</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl66 width=64 align=right>
105</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: white; WIDTH: 26pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: windowtext 1pt solid" class=xl69 width=35></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; HEIGHT: 13.5pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #ece9d8" class=xl73 height=18 width=64>
Apple</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #ece9d8" class=xl65 width=64>
B</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #ece9d8" class=xl65 width=64 align=right>
75</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 26pt; BORDER-TOP: #cccccc; BORDER-RIGHT: windowtext 1pt solid" class=xl68 width=35></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; HEIGHT: 13.5pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl78 height=18 width=64>
Apple</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl67 width=64>
C</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl67 width=64 align=right>
45</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: white; WIDTH: 26pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: windowtext 1pt solid" class=xl69 width=35></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: white; WIDTH: 48pt; HEIGHT: 13.5pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #ece9d8" class=xl79 height=18 width=64>
Cherry</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #ece9d8" class=xl80 width=64>
A</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #ece9d8" class=xl80 width=64 align=right>
105</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 26pt; BORDER-TOP: #cccccc; BORDER-RIGHT: windowtext 1pt solid" class=xl68 width=35></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: white; WIDTH: 48pt; HEIGHT: 13.5pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl72 height=18 width=64>
Pear</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl66 width=64>
A</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl66 width=64 align=right>
76.8</TD><TD style="BORDER-BOTTOM: #cccccc 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: white; WIDTH: 26pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: windowtext 1pt solid" class=xl69 width=35></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; HEIGHT: 13.5pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #ece9d8" class=xl74 height=18 width=64>
Pear</TD><TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #ece9d8" class=xl70 width=64>
B</TD><TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 48pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #ece9d8" class=xl70 width=64 align=right>
96</TD><TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: #f3f3f3; WIDTH: 26pt; BORDER-TOP: #cccccc; BORDER-RIGHT: windowtext 1pt solid" class=xl71 width=35></TD></TR></TBODY></TABLE>
Obviously the answer for the Apple tree is A but what about the Pear tree? Again, this will apply to more realistic situation.
My apologies for not asking the correct question to begin with.
Allen