Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Average If Array Formula

Hi. I have the following formula in my spreadsheet that I need some help with:

=ROUND(AVERAGE(IF((Damian!$N$4:$N$10000=""),Damian !$P$4:$P$10000)),0)

Cells N4 through N10000 contain either a blank cell or an E or an I. Cells
P4 through P10000 contain a calculated number. The array function states the
following:

If any cell within the range of N4 through N10000 on the worksheet named
Damian are blank
then find the average of the corresponding cells within the range of P4
through P10000
and round to the zero digit

I have a similar function (see below) in another cell to find all cells in
N4 through N10000 that are not blank. This formula works fine.

=ROUND(AVERAGE(IF((Damian!$N$4:$N$10000<""),Damia n!$P$4:$P$10000)),0)

The formula for finding blank cells is returning a value of 0 when it should
return a value of 21. Any ideas of why this is not working?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Average If Array Formula

Maybe there are some spaces in there. Try

=ROUND(AVERAGE(IF(TRIM(Damian!$N$4:$N$10000)="",Da mian!$P$4:$P$10000)),0)



--
---
HTH

Bob

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



"Meteor1240" wrote in message
...
Hi. I have the following formula in my spreadsheet that I need some help
with:

=ROUND(AVERAGE(IF((Damian!$N$4:$N$10000=""),Damian !$P$4:$P$10000)),0)

Cells N4 through N10000 contain either a blank cell or an E or an I.
Cells
P4 through P10000 contain a calculated number. The array function states
the
following:

If any cell within the range of N4 through N10000 on the worksheet named
Damian are blank
then find the average of the corresponding cells within the range of P4
through P10000
and round to the zero digit

I have a similar function (see below) in another cell to find all cells in
N4 through N10000 that are not blank. This formula works fine.

=ROUND(AVERAGE(IF((Damian!$N$4:$N$10000<""),Damia n!$P$4:$P$10000)),0)

The formula for finding blank cells is returning a value of 0 when it
should
return a value of 21. Any ideas of why this is not working?

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Average If Array Formula

Nope, didn't work either but thanks for trying.

"Meteor1240" wrote:

Hi. I have the following formula in my spreadsheet that I need some help with:

=ROUND(AVERAGE(IF((Damian!$N$4:$N$10000=""),Damian !$P$4:$P$10000)),0)

Cells N4 through N10000 contain either a blank cell or an E or an I. Cells
P4 through P10000 contain a calculated number. The array function states the
following:

If any cell within the range of N4 through N10000 on the worksheet named
Damian are blank
then find the average of the corresponding cells within the range of P4
through P10000
and round to the zero digit

I have a similar function (see below) in another cell to find all cells in
N4 through N10000 that are not blank. This formula works fine.

=ROUND(AVERAGE(IF((Damian!$N$4:$N$10000<""),Damia n!$P$4:$P$10000)),0)

The formula for finding blank cells is returning a value of 0 when it should
return a value of 21. Any ideas of why this is not working?

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Average If Array Formula

Forgot to mention that I am using the CTRL+SHFT+ENTER keys when entering
these formulas.

"Meteor1240" wrote:

Hi. I have the following formula in my spreadsheet that I need some help with:

=ROUND(AVERAGE(IF((Damian!$N$4:$N$10000=""),Damian !$P$4:$P$10000)),0)

Cells N4 through N10000 contain either a blank cell or an E or an I. Cells
P4 through P10000 contain a calculated number. The array function states the
following:

If any cell within the range of N4 through N10000 on the worksheet named
Damian are blank
then find the average of the corresponding cells within the range of P4
through P10000
and round to the zero digit

I have a similar function (see below) in another cell to find all cells in
N4 through N10000 that are not blank. This formula works fine.

=ROUND(AVERAGE(IF((Damian!$N$4:$N$10000<""),Damia n!$P$4:$P$10000)),0)

The formula for finding blank cells is returning a value of 0 when it should
return a value of 21. Any ideas of why this is not working?

Thanks!

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
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
Array Formula to find Average Return Paul987 Excel Discussion (Misc queries) 1 May 9th 06 06:20 PM
Average Array help with a formula chedd via OfficeKB.com Excel Worksheet Functions 2 January 30th 06 11:30 PM
Array Formula to Pick Average SludgeQuake Excel Discussion (Misc queries) 3 January 11th 06 12:59 AM
Average Array Formula Rachael Excel Worksheet Functions 3 June 7th 05 04:00 PM


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