Hi,
In the following, if the result is FALSE I need #n/a to be returned.
=IF(QUERY!$G$14=1,PERCENTRANK($C$1:$C$118,$C5)*100,IF(QUERY!$G$14=2,PERCENTRANK($C$1:$C$16,$C5)*100,IF(QUERY!$G$14=3,PERCENTRANK($C$17:$C$28,$C5)*100,IF(QUERY!$G$14=4,PERCENTRANK($C$29:$C$47,$C5)*100,IF(QUERY!$G$14=5,PERCENTRANK($C$48:$C$60,$C5)*100,IF(QUERY!$G$14=6,PERCENTRANK($C$61:$C$98,$C5)*100,IF(QUERY!$G$14=7,PERCENTRANK($C$99:$C$118,$C5)*100)))))))
Where G14 = 2 or 6 #n/a is returned as I'd hoped. However, where G14 = 3, 4, 5 or 7 and the result is FALSE, "0" is returned.
By way of an example, in response to the following
IF(QUERY!$G$14=5,PERCENTRANK($C$48:$C$60,$C5)*100
if G14 does equal 5 I want all cells outside of C48:C60 to return an #n/a. As I said, this works for 2 and 6 but not for 3, 4, 5 and 7.
Many thanks
Bookmarks