#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default Array?

Iam working with the formula below I do add the brackets for an array.

I am looking at a range of rows, If Column E is "Medium" and Column E has a
value in it, then give me the average of E.

A blank is returned. Please advise.


=IF(AND($F$2:$F$34="Medium",$E$2:$E$34""),AVERAGE ($E$2:$E$34),"")
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default Array?

try this

=AVERAGE(IF(F5:F16="medium",E5:E16,"")) ( use ctrl + shift + enter )


On Oct 24, 7:56*pm, PAL wrote:
Iam working with the formula below I do add the brackets for an array.

I am looking at a range of rows, If Column E is "Medium" and *Column E has a
value in it, then give me the average of E.

A blank is returned. *Please advise.

=IF(AND($F$2:$F$34="Medium",$E$2:$E$34""),AVERAGE ($E$2:$E$34),"")


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Array?

Try this array formula:
=AVERAGE(IF($F$2:$F$34="Medium",IF($E$2:$E$34<"", $E$2:$E$34,""),""))

--
** John C **

"PAL" wrote:

Iam working with the formula below I do add the brackets for an array.

I am looking at a range of rows, If Column E is "Medium" and Column E has a
value in it, then give me the average of E.

A blank is returned. Please advise.


=IF(AND($F$2:$F$34="Medium",$E$2:$E$34""),AVERAGE ($E$2:$E$34),"")

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Array?

This will give you an error #DIV/0 if there are no values next to a Medium :)
--
** John C **

"John C" wrote:

Try this array formula:
=AVERAGE(IF($F$2:$F$34="Medium",IF($E$2:$E$34<"", $E$2:$E$34,""),""))

--
** John C **

"PAL" wrote:

Iam working with the formula below I do add the brackets for an array.

I am looking at a range of rows, If Column E is "Medium" and Column E has a
value in it, then give me the average of E.

A blank is returned. Please advise.


=IF(AND($F$2:$F$34="Medium",$E$2:$E$34""),AVERAGE ($E$2:$E$34),"")

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default Array?

This works. Thanks. If I change average to Count, it doesn't. Thoughts?

"John C" wrote:

Try this array formula:
=AVERAGE(IF($F$2:$F$34="Medium",IF($E$2:$E$34<"", $E$2:$E$34,""),""))

--
** John C **

"PAL" wrote:

Iam working with the formula below I do add the brackets for an array.

I am looking at a range of rows, If Column E is "Medium" and Column E has a
value in it, then give me the average of E.

A blank is returned. Please advise.


=IF(AND($F$2:$F$34="Medium",$E$2:$E$34""),AVERAGE ($E$2:$E$34),"")



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Array?

COUNT works for me, what are you getting? What do you expect to get?
--
** John C **

"PAL" wrote:

This works. Thanks. If I change average to Count, it doesn't. Thoughts?

"John C" wrote:

Try this array formula:
=AVERAGE(IF($F$2:$F$34="Medium",IF($E$2:$E$34<"", $E$2:$E$34,""),""))

--
** John C **

"PAL" wrote:

Iam working with the formula below I do add the brackets for an array.

I am looking at a range of rows, If Column E is "Medium" and Column E has a
value in it, then give me the average of E.

A blank is returned. Please advise.


=IF(AND($F$2:$F$34="Medium",$E$2:$E$34""),AVERAGE ($E$2:$E$34),"")

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default Array?

Got it, not sure what I did the first time. thanks.

"John C" wrote:

COUNT works for me, what are you getting? What do you expect to get?
--
** John C **

"PAL" wrote:

This works. Thanks. If I change average to Count, it doesn't. Thoughts?

"John C" wrote:

Try this array formula:
=AVERAGE(IF($F$2:$F$34="Medium",IF($E$2:$E$34<"", $E$2:$E$34,""),""))

--
** John C **

"PAL" wrote:

Iam working with the formula below I do add the brackets for an array.

I am looking at a range of rows, If Column E is "Medium" and Column E has a
value in it, then give me the average of E.

A blank is returned. Please advise.


=IF(AND($F$2:$F$34="Medium",$E$2:$E$34""),AVERAGE ($E$2:$E$34),"")

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
Prevent cell/array references from changing when altering/moving thecell/array nme Excel Discussion (Misc queries) 1 September 19th 08 01:53 PM
Array: Counting multiple values within array Trilux_nogo Excel Worksheet Functions 4 April 16th 07 03:12 AM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
combining cells and array from different sheets into an array to pass to IRR() [email protected] Excel Discussion (Misc queries) 3 September 11th 06 07:17 AM
Goal Seek On Members of an Array within Array LostInVBA Excel Worksheet Functions 1 June 27th 05 11:01 PM


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