HELP - difference of Average and median

  • Thread starter Thread starter pentameggy
  • Start date Start date
P

pentameggy

HELP: how do i write a function usinf the worksheet function to fin
the difference between the average and the median of a data set??? an
help appriciated.

thanks!

megg
 
=average(THE RANGE YOU NEED TO ANALYZE)-MEDIAN(THE RANGE YOU NEED T
ANALYZE
 
assuming your data is in cells E1 to E7

=AVERAGE(E1:E7)-MEDIAN(E1:E7)


Alby
 
Hi Meggy

as long as i'm not doing your home work for you????

Public Function MEDAVE(medrange As Range)

MEDAVE = Application.WorksheetFunction.Median(medrange) -
Application.WorksheetFunction.Average(medrange)

End Function

creates a function called MEDAVE

Cheers
JulieD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top