View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] jonnegoogle@yahoo.com is offline
external usenet poster
 
Posts: 3
Default applying function depending on condition in other cell

Hi experts,

If I have data like this

A B
-------------
x 2
x 5
y 6
x 1
y 2
x 3

How do I include the values of column B in a function, only if the
values have a corresponding x in the A column. For example if I would
like to calculate the AVERAGE only of the values in B which has the
value X in A.

Jonas