Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default calculating averages and using conditional "if" statements

i am attempting to average a range of cells, in which each cell value cannot
be above a certain quantity. if a cell value is above the set quantity, i
want for excel to calculate the average, excluding the cell reference that
contains the value above the set qunatity. in words, this is what i want to
say (in the numbers/quantitative statement):

if any cells in the range c8:du8 are <4, calculate the average of cells
c8:du8; however, if any cells in this range are 4, calculate the average of
the range, BUT exclude those cells (with values greater than 4) from the
formula.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default calculating averages and using conditional "if" statements

If the values are <4 do this
If the values are 4 do that

What if the values ARE 4?

Biff

"achieve" wrote in message
...
i am attempting to average a range of cells, in which each cell value
cannot
be above a certain quantity. if a cell value is above the set quantity, i
want for excel to calculate the average, excluding the cell reference that
contains the value above the set qunatity. in words, this is what i want
to
say (in the numbers/quantitative statement):

if any cells in the range c8:du8 are <4, calculate the average of cells
c8:du8; however, if any cells in this range are 4, calculate the average
of
the range, BUT exclude those cells (with values greater than 4) from the
formula.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default calculating averages and using conditional "if" statements

=SUMIF(...)/COUNTIF(...) allows you to specify the constraint <4.

Recall that AVERAGE is merely SUM/COUNT.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"achieve" wrote:

i am attempting to average a range of cells, in which each cell value cannot
be above a certain quantity. if a cell value is above the set quantity, i
want for excel to calculate the average, excluding the cell reference that
contains the value above the set qunatity. in words, this is what i want to
say (in the numbers/quantitative statement):

if any cells in the range c8:du8 are <4, calculate the average of cells
c8:du8; however, if any cells in this range are 4, calculate the average of
the range, BUT exclude those cells (with values greater than 4) from the
formula.

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
Need more than 7 nested "IF" statements in Excel" James A Excel Discussion (Misc queries) 1 December 17th 06 02:02 AM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
inserting a conditional "go to" command on a excel "if" function velasques Excel Worksheet Functions 5 March 10th 06 08:16 PM
conditional formula to show "open" or "closed" SBS Excel Worksheet Functions 6 January 28th 06 01:48 AM


All times are GMT +1. The time now is 06:35 AM.

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

About Us

"It's about Microsoft Excel"