View Single Post
  #3   Report Post  
Domenic
 
Posts: n/a
Default

Maybe...

=IF(SUM(($A$5:$A$90)*($B$5:$B$90)),MEDIAN(IF($A$ 5:$A$90,IF($B$5:$B$90
,$B$5:$B$9))),0)

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
tlosgyl3
wrote:

I have a Table 1 that extracts data from table 2 and table 3 to Table 1
columns A and B.

Where Tables 2 and 3 contain no data Excel returns the balue 0 to table
1.

The tables look like this:

Table 1, Table 2, Table 3
Column A Column B Column A Column A
+T2 Cell A1 +T3 Cell A1 Data Data
Result Result
m 4 m 4
f 6 f 6
f 8 f 8
0 0
0 0

With the data above and using the array
formula =MEDIAN(IF($A$5:$A$90,IF($B$5:$B$90,$B$5:$B$9)))

I get a correct result of 6. But if there is no Data in Table 3 Column
A I get the result #NUM!

As this data gets used to complile a further data set I need it to
return 0 (Zero).

Any help appreciated.

tlosgyl3








I want to find the median of the values in column B of table 1 subject
to 2 conditions: