Not very fancy Im afraid but presuming you always have 3 cells merged then this may work. Someone may have a more elegant solution.
******** ******************** ************************************************************************><center>[TABLE="align: center"]
<tbody>[TR]
[TD="bgcolor: #0c266b, colspan: 7"][TABLE="width: 100%, align: center"]
<tbody>[TR]
[TD="align: left"]
Microsoft Excel - Book2[/TD]
[TD="align: right"]___Running: xl2002 XP : OS = Windows XP [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD="bgcolor: #d4d0c8, colspan: 7"][TABLE="width: 100%, align: center"]
<tbody>[TR]
[TD]
File
Edit
View
Insert
Options
Tools
Data
Window
Help
About[/TD]
[TD="align: center"]<form name="formCb057699"><input *******="window.clipboardData.setData("Text",document.formFb372102.sltNb511812.value);" type="button" value="Copy Formula" name="btCb582026"></form>[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD="bgcolor: white, colspan: 7"]
<tbody>
<form name="formFb372102"></form>[TD="bgcolor: white"]<select onchange="document.formFb372102.txbFb428000.value = document.formFb372102.sltNb511812.value" name="sltNb511812"><option value="=SUM(INDIRECT("C"&SUMPRODUCT((A2:A7=$E2)*(ROW(2:7)))&":C"&SUMPRODUCT((A2:A7=$E2)*(ROW(2:7)))+2))" selected="">F2</option><option value="=SUM(INDIRECT("C"&SUMPRODUCT((A3:A8=$E3)*(ROW(3:8)))&":C"&SUMPRODUCT((A3:A8=$E3)*(ROW(3:8)))+2))">F3</option></select>[/TD]
[TD="bgcolor: #d4d0c8, align: right"]
=
[/TD]
[TD="bgcolor: white, align: left"]<input size="80" value="=SUM(INDIRECT("C"&SUMPRODUCT((A2:A7=$E2)*(ROW(2:7)))&":C"&SUMPRODUCT((A2:A7=$E2)*(ROW(2:7)))+2))" name="txbFb428000">[/TD]
</tbody>
[/TD]
[/TR]
[TR]
[TD="width: 2%, bgcolor: #d4d0c8"][/TD]
[TD="bgcolor: #d4d0c8"]<center>A</center>[/TD]
[TD="bgcolor: #d4d0c8"]<center>B</center>[/TD]
[TD="bgcolor: #d4d0c8"]<center>C</center>[/TD]
[TD="bgcolor: #d4d0c8"]<center>D</center>[/TD]
[TD="bgcolor: #d4d0c8"]<center>E</center>[/TD]
[TD="bgcolor: #d4d0c8"]<center>F</center>[/TD]
[/TR]
[TR]
[TD="width: 2%, bgcolor: #d4d0c8"]<center>1</center>[/TD]
[TD]Fruit[/TD]
[TD]Type[/TD]
[TD]Total[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD]*[/TD]
[/TR]
[TR]
[TD="width: 2%, bgcolor: #d4d0c8"]<center>2</center>[/TD]
[TD]Apple[/TD]
[TD]Red[/TD]
[TD]100[/TD]
[TD]*[/TD]
[TD]Apple[/TD]
[TD]
430[/TD]
[/TR]
[TR]
[TD="width: 2%, bgcolor: #d4d0c8"]<center>3</center>[/TD]
[TD]Green[/TD]
[TD]150[/TD]
[TD]*[/TD]
[TD]Banana[/TD]
[TD]
210[/TD]
[/TR]
[TR]
[TD="width: 2%, bgcolor: #d4d0c8"]<center>4</center>[/TD]
[TD]Yellow[/TD]
[TD]180[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD]*[/TD]
[/TR]
[TR]
[TD="width: 2%, bgcolor: #d4d0c8"]<center>5</center>[/TD]
[TD]Banana[/TD]
[TD]Green[/TD]
[TD]60[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD]*[/TD]
[/TR]
[TR]
[TD="width: 2%, bgcolor: #d4d0c8"]<center>6</center>[/TD]
[TD]Yellow[/TD]
[TD]120[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD]*[/TD]
[/TR]
[TR]
[TD="width: 2%, bgcolor: #d4d0c8"]<center>7</center>[/TD]
[TD]Pink[/TD]
[TD]30[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD]*[/TD]
[/TR]
[TR]
[TD="bgcolor: #d4d0c8, colspan: 7"][TABLE="width: 100%, align: left"]
<tbody>[TR]
[TD="bgcolor: #ffffff, align: left"]
Sheet1[/TD]
[TD]*[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[HtmlMaker light Ver1.10] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.</center>