Median of The Absolute Difference From the Median in an Array

Jibrael

New Member
Joined
Jan 21, 2018
Messages
1
Something like [=MEDIAN(ABS(C3:C20-MEDIAN(C3:C20)))] works but I can not find a way to define this statistic with a range of C:C so as to be able to see the change as soon as I add values?

I thought that [{=MEDIAN(ABS(IF(AND((C:C<>0),(ISNUMBER(C:C))),C:C)-MEDIAN(C:C)))}] Would exclude empty cells and text titles, but the correct value is not returned. If I do not use [C:C<>0] a large negative number is returned and it would suggest that every empty cell is being evaluated as "0-median"

Is there a way to define the first equation with a an entire column as a range and ignore empty cells and titles such that I can plug any data into the column and immediately obtain the MAD statistic?

Thank you for your time in consideration of this problem,
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
First, convert your data into a Table (Ribbon > Insert > Table), and then specify the exact range. Then the range will automatically adjust as data is added or removed. Also, if the column contains empty cells, you can exclude them using the following formula that needs to be confirmed with CONTROL+SHIFT+ENTER...

=MEDIAN(IF(LEN(C3:C20)>0,ABS(C3:C20-MEDIAN(C3:C20))))

Adjust the range accordingly.

Hope this helps!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,407
Messages
6,119,332
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top