Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Array average question

Hi there,

I am using the following formula to calculate the average of a row of cells
that are a) not empty, b) do not contain a zero value

=AVERAGE((IF(E49:IV49<"",E49:IV49)),AND(IF(E49:IV 49<"0",E49:IV49)))

It ignores the empty cells OK but not the ones that contain a zaero value.

Any ideas??
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Array average question

See other post.

--
HTH

Bob Phillips

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"LostwithoutLost" wrote in
message ...
Hi there,

I am using the following formula to calculate the average of a row of

cells
that are a) not empty, b) do not contain a zero value

=AVERAGE((IF(E49:IV49<"",E49:IV49)),AND(IF(E49:IV 49<"0",E49:IV49)))

It ignores the empty cells OK but not the ones that contain a zaero value.

Any ideas??



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Array average question

=AVERAGE(IF(C22:C25<0,C22:C25))

enter as an array formula

"LostwithoutLost" wrote:

Hi there,

I am using the following formula to calculate the average of a row of cells
that are a) not empty, b) do not contain a zero value

=AVERAGE((IF(E49:IV49<"",E49:IV49)),AND(IF(E49:IV 49<"0",E49:IV49)))

It ignores the empty cells OK but not the ones that contain a zaero value.

Any ideas??

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Array average question

Try this, array-entered:
=AVERAGE(IF(E49:IV490,E49:IV49))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"LostwithoutLost" wrote:
Hi there,

I am using the following formula to calculate the average of a row of cells
that are a) not empty, b) do not contain a zero value

=AVERAGE((IF(E49:IV49<"",E49:IV49)),AND(IF(E49:IV 49<"0",E49:IV49)))

It ignores the empty cells OK but not the ones that contain a zaero value.

Any ideas??

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Array average question

What you need is =AVERAGE(IF(E49:IV49<0,E49:IV49))
You must enter it as an array formula using CTRL+SHIFT+ENTER rather than
just ENTER. Excel will enclose the formula is curly braces {...}
You need not worry about blanks - AVERAGE is 'smart enough' to ignore them

Your formula has a number of errors
1) Wrong syntax fro AND
2) Boolean functions (AND, OR, NOT) do not work in array formulas
3) Wrong to put 0 is quotes - it is a number not text

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"LostwithoutLost" wrote in
message ...
Hi there,

I am using the following formula to calculate the average of a row of
cells
that are a) not empty, b) do not contain a zero value

=AVERAGE((IF(E49:IV49<"",E49:IV49)),AND(IF(E49:IV 49<"0",E49:IV49)))

It ignores the empty cells OK but not the ones that contain a zaero value.

Any ideas??





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Array average question

Hi,


Try this:

=AVERAGE(IF((E49:IV49<"")*(E49:IV49<0),E49:IV49) )

but this should work as well I think:

=AVERAGE(IF(E49:IV49<0,E49:IV49))

again enter using CSE


HTH
Jean-Guy

enter using Ctrl+Shift+Enter

HTH
Jean-Guy

"LostwithoutLost" wrote:

Hi there,

I am using the following formula to calculate the average of a row of cells
that are a) not empty, b) do not contain a zero value

=AVERAGE((IF(E49:IV49<"",E49:IV49)),AND(IF(E49:IV 49<"0",E49:IV49)))

It ignores the empty cells OK but not the ones that contain a zaero value.

Any ideas??

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Array average question

Thankyou all very much.

its all working now.

Thanks

"Bernard Liengme" wrote:

What you need is =AVERAGE(IF(E49:IV49<0,E49:IV49))
You must enter it as an array formula using CTRL+SHIFT+ENTER rather than
just ENTER. Excel will enclose the formula is curly braces {...}
You need not worry about blanks - AVERAGE is 'smart enough' to ignore them

Your formula has a number of errors
1) Wrong syntax fro AND
2) Boolean functions (AND, OR, NOT) do not work in array formulas
3) Wrong to put 0 is quotes - it is a number not text

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"LostwithoutLost" wrote in
message ...
Hi there,

I am using the following formula to calculate the average of a row of
cells
that are a) not empty, b) do not contain a zero value

=AVERAGE((IF(E49:IV49<"",E49:IV49)),AND(IF(E49:IV 49<"0",E49:IV49)))

It ignores the empty cells OK but not the ones that contain a zaero value.

Any ideas??




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
Function Key for Calculating Average? robin Excel Worksheet Functions 17 November 2nd 06 11:47 PM
Simple average question Newguy123 New Users to Excel 2 February 2nd 06 10:17 PM
Another Average non-adjacent cells question... [email protected] Excel Discussion (Misc queries) 2 February 1st 06 05:48 PM
Average If Question Renee Excel Discussion (Misc queries) 6 March 29th 05 09:39 PM
Multicell Array Formula and List Question John Mansfield Excel Worksheet Functions 11 March 21st 05 01:36 AM


All times are GMT +1. The time now is 09:29 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"