Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
stew1901
 
Posts: n/a
Default Calculating basic averages...a question


Hi all

First post! I hope this is the right section!

I need to calculate a simple average (arithmetic and median) of a set
of numbers, but excluding certain outlying points. I'm not by any
means a newbie to coding so I do know how I'd do this generally in a
programming language or "pseudo code" (so no need to waste your time on
long explanations!) but I am completely new to Excel so have no idea of
the syntax and don't really have the time to mess around with the
"guess the useful phrase" help function.

Thanks in advance...I hope...


--
stew1901
------------------------------------------------------------------------
stew1901's Profile: http://www.excelforum.com/member.php...o&userid=29164
View this thread: http://www.excelforum.com/showthread...hreadid=488880

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Calculating basic averages...a question

Hi!

To average values that are 25 but <50:

Array entered using the key combo of CTRL,SHIFT,ENTER:

=AVERAGE(IF(A1:A1025,IF(A1:A10<50,A1:A10)))

Biff

"stew1901" wrote in
message ...

Hi all

First post! I hope this is the right section!

I need to calculate a simple average (arithmetic and median) of a set
of numbers, but excluding certain outlying points. I'm not by any
means a newbie to coding so I do know how I'd do this generally in a
programming language or "pseudo code" (so no need to waste your time on
long explanations!) but I am completely new to Excel so have no idea of
the syntax and don't really have the time to mess around with the
"guess the useful phrase" help function.

Thanks in advance...I hope...


--
stew1901
------------------------------------------------------------------------
stew1901's Profile:
http://www.excelforum.com/member.php...o&userid=29164
View this thread: http://www.excelforum.com/showthread...hreadid=488880



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John Michl
 
Posts: n/a
Default Calculating basic averages...a question

You could do this with array formulas. Instead of hitting Enter to
finish the formula, use Ctrl-Shift-Enter to add the curly braces to the
array formula. If the range of values is in cells A1 through A10 and
you want to disregard all values equal to or greater than 25, use:

{=AVERAGE(IF(A1:A10<25,A1:A10,""))}
{=MEDIAN(IF(A1:A10<25,A1:A10,""))}

For more info on array formulas, see
http://www.cpearson.com/excel/array.htm

Hope that helps.
- John
www.JohnMichl.com

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
stew1901
 
Posts: n/a
Default Calculating basic averages...a question


Thanks a lot!

That is SO FAR off what I was expecting you have probably saved me an
hour of frustration!


--
stew1901
------------------------------------------------------------------------
stew1901's Profile: http://www.excelforum.com/member.php...o&userid=29164
View this thread: http://www.excelforum.com/showthread...hreadid=488880

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike Middleton
 
Posts: n/a
Default Calculating basic averages...a question

stew1901 -

The median is relatively insensitive to the values of the extremes, so maybe
you don't have to exclude them.

For the arithmetic mean, you might try the TRIMMEAN worksheet function.

- Mike
www.mikemiddleton.com

"stew1901" wrote in
message ...

Hi all

First post! I hope this is the right section!

I need to calculate a simple average (arithmetic and median) of a set
of numbers, but excluding certain outlying points. I'm not by any
means a newbie to coding so I do know how I'd do this generally in a
programming language or "pseudo code" (so no need to waste your time on
long explanations!) but I am completely new to Excel so have no idea of
the syntax and don't really have the time to mess around with the
"guess the useful phrase" help function.

Thanks in advance...I hope...

--
stew1901





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
stew1901
 
Posts: n/a
Default Calculating basic averages...a question


Good point on the median Mike. I was going to exclude it as I didn't
see an immediate way of using similar techniques (and it's not that
vital...this isn't anything particularly scientific)

TRIMMEAN I don't think would work...what I basically have is a list of
exam scores, but with a few absences (recorded as zero) and a very few
low scores from people who have since quit.

No doubt there are more sensible ways I could have organised the data!
But at least I've got a very small bit of experience with worksheet
functions now. The CTRL SHIFT ENTER thing in particular I had no idea
about and don't see how I'd have stumbled across by accident.


--
stew1901
------------------------------------------------------------------------
stew1901's Profile: http://www.excelforum.com/member.php...o&userid=29164
View this thread: http://www.excelforum.com/showthread...hreadid=488880

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Pivot Table Question (using 97) Adam Kroger Excel Discussion (Misc queries) 3 November 25th 05 11:33 PM
basic question on typing names on spreadsheet- problem KOS Excel Discussion (Misc queries) 2 September 18th 05 04:43 PM
calculating averages Golf Averages Excel Discussion (Misc queries) 1 August 15th 05 08:25 PM
Very basic question - how long can a list be? Wendus Excel Discussion (Misc queries) 4 August 10th 05 12:12 AM
basic pie chart question KayR Charts and Charting in Excel 4 January 23rd 05 08:16 PM


All times are GMT +1. The time now is 02:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"