Hi,
I need to analyse a large data source to find the average and median values of certain items.</SPAN></SPAN>
I’ve put together an example below that illustrates what I need to do. </SPAN></SPAN>
I need a formula in E2 that calculates the average number in B2:B21 where column A2:A21 =’s E1 [Apple] ie The average of 200</SPAN></SPAN>
I need also need a formula in E3 that calculates the median number in B2:B21 where column A2:A21 =’s E1 [Apple]</SPAN></SPAN>
Can anyone help me please?</SPAN></SPAN>
[TABLE="width: 321"]
<TBODY>[TR]
[TD] [/TD]
[TD]A</SPAN>[/TD]
[TD]B</SPAN>[/TD]
[TD]C</SPAN>[/TD]
[TD]D</SPAN>[/TD]
[TD]E</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]Fruit</SPAN>[/TD]
[TD]Bites</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]Apple</SPAN>[/TD]
[/TR]
[TR]
[TD]2</SPAN>[/TD]
[TD]Apple</SPAN>[/TD]
[TD]50</SPAN>[/TD]
[TD] [/TD]
[TD]Av</SPAN>[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]3</SPAN>[/TD]
[TD]Pear</SPAN>[/TD]
[TD]40</SPAN>[/TD]
[TD] [/TD]
[TD]Median</SPAN>[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]4</SPAN>[/TD]
[TD]Plumb</SPAN>[/TD]
[TD]30</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]5</SPAN>[/TD]
[TD]Orange</SPAN>[/TD]
[TD]20</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]6</SPAN>[/TD]
[TD]Cherry</SPAN>[/TD]
[TD]10</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]7</SPAN>[/TD]
[TD]Apple</SPAN>[/TD]
[TD]50</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]8</SPAN>[/TD]
[TD]Pear</SPAN>[/TD]
[TD]40</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]9</SPAN>[/TD]
[TD]Plumb</SPAN>[/TD]
[TD]30</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]10</SPAN>[/TD]
[TD]Orange</SPAN>[/TD]
[TD]20</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]11</SPAN>[/TD]
[TD]Cherry</SPAN>[/TD]
[TD]10</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]12</SPAN>[/TD]
[TD]Apple</SPAN>[/TD]
[TD]50</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]13</SPAN>[/TD]
[TD]Pear</SPAN>[/TD]
[TD]40</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14</SPAN>[/TD]
[TD]Plumb</SPAN>[/TD]
[TD]30</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]15</SPAN>[/TD]
[TD]Orange</SPAN>[/TD]
[TD]20</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]16</SPAN>[/TD]
[TD]Cherry</SPAN>[/TD]
[TD]10</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]17</SPAN>[/TD]
[TD]Apple</SPAN>[/TD]
[TD]50</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]18</SPAN>[/TD]
[TD]Pear</SPAN>[/TD]
[TD]40</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]19</SPAN>[/TD]
[TD]Plumb</SPAN>[/TD]
[TD]30</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20</SPAN>[/TD]
[TD]Orange</SPAN>[/TD]
[TD]20</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]21</SPAN>[/TD]
[TD]Cherry</SPAN>[/TD]
[TD]10</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</TBODY><COLGROUP><COL><COL span=2><COL><COL span=2></COLGROUP>[/TABLE]
I need to analyse a large data source to find the average and median values of certain items.</SPAN></SPAN>
I’ve put together an example below that illustrates what I need to do. </SPAN></SPAN>
I need a formula in E2 that calculates the average number in B2:B21 where column A2:A21 =’s E1 [Apple] ie The average of 200</SPAN></SPAN>
I need also need a formula in E3 that calculates the median number in B2:B21 where column A2:A21 =’s E1 [Apple]</SPAN></SPAN>
Can anyone help me please?</SPAN></SPAN>
[TABLE="width: 321"]
<TBODY>[TR]
[TD] [/TD]
[TD]A</SPAN>[/TD]
[TD]B</SPAN>[/TD]
[TD]C</SPAN>[/TD]
[TD]D</SPAN>[/TD]
[TD]E</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]Fruit</SPAN>[/TD]
[TD]Bites</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]Apple</SPAN>[/TD]
[/TR]
[TR]
[TD]2</SPAN>[/TD]
[TD]Apple</SPAN>[/TD]
[TD]50</SPAN>[/TD]
[TD] [/TD]
[TD]Av</SPAN>[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]3</SPAN>[/TD]
[TD]Pear</SPAN>[/TD]
[TD]40</SPAN>[/TD]
[TD] [/TD]
[TD]Median</SPAN>[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]4</SPAN>[/TD]
[TD]Plumb</SPAN>[/TD]
[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ange</SPAN>[/TD]
[TD]20</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]16</SPAN>[/TD]
[TD]Cherry</SPAN>[/TD]
[TD]10</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]17</SPAN>[/TD]
[TD]Apple</SPAN>[/TD]
[TD]50</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]18</SPAN>[/TD]
[TD]Pear</SPAN>[/TD]
[TD]40</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]19</SPAN>[/TD]
[TD]Plumb</SPAN>[/TD]
[TD]30</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20</SPAN>[/TD]
[TD]Orange</SPAN>[/TD]
[TD]20</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]21</SPAN>[/TD]
[TD]Cherry</SPAN>[/TD]
[TD]10</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</TBODY><COLGROUP><COL><COL span=2><COL><COL span=2></COLGROUP>[/TABLE]