ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula won't calculate (https://www.excelbanter.com/excel-discussion-misc-queries/67139-formula-wont-calculate.html)

tlosgyl3

Formula won't calculate
 

I have the following expressions in adjacent cells
{=IF(L3:L620,MEDIAN(IF(L3:L620,L3:L62)),0)}
{=IF(M3:M620,MEDIAN(IF(M3:M620,M3:M62)),0)}

The data from which it is trying to calculae the Median is extracted
from another sheet.

I want to know the median value of those cells where the value is above
0

The first expression calculates correctly
The second consitently returns 0 even though there are positive values
in 44 of the cells.

Any ideas?http://www.excelforum.com/images/smilies/confused.gif
:confused:

tlosgyl3


--
tlosgyl3
------------------------------------------------------------------------
tlosgyl3's Profile: http://www.excelforum.com/member.php...o&userid=28074
View this thread: http://www.excelforum.com/showthread...hreadid=504605


daddylonglegs

Formula won't calculate
 

You need to change the formulas - the ones you have will only give you
the result you want when L3 (or M3) has a positive value.You only need

{=MEDIAN(IF(L3:L620,L3:L62))}
{=MEDIAN(IF(M3:M620,M3:M62))}


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=504605


tlosgyl3

Formula won't calculate
 

Got it - works - brillaint - thanks :)

tlosgyl3


--
tlosgyl3
------------------------------------------------------------------------
tlosgyl3's Profile: http://www.excelforum.com/member.php...o&userid=28074
View this thread: http://www.excelforum.com/showthread...hreadid=504605



All times are GMT +1. The time now is 01:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com