Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / September 2007

Tip: Looking for answers? Try searching our database.

Average If Array Formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Meteor1240 - 21 Sep 2007 19:56 GMT
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<>""),Damian!$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!
Bob Phillips - 21 Sep 2007 20:11 GMT
Maybe there are some spaces in there. Try

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

Signature

---
HTH

Bob

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

> Hi.  I have the following formula in my spreadsheet that I need some help
> with:
[quoted text clipped - 23 lines]
>
> Thanks!
Meteor1240 - 21 Sep 2007 20:20 GMT
Nope, didn't work either but thanks for trying.

> Hi.  I have the following formula in my spreadsheet that I need some help with:
>
[quoted text clipped - 19 lines]
>
> Thanks!
Meteor1240 - 21 Sep 2007 20:22 GMT
Forgot to mention that I am using the CTRL+SHFT+ENTER keys when entering
these formulas.

> Hi.  I have the following formula in my spreadsheet that I need some help with:
>
[quoted text clipped - 19 lines]
>
> Thanks!
Sandy Mann - 21 Sep 2007 21:57 GMT
> =ROUND(AVERAGE(IF((Damian!$N$4:$N$10000=""),Damian!$P$4:$P$10000)),0)

This will return 0's for all cells were N & P are empty, is it possible that
you have enough blank rows to reduce the average below 1?

Signature

HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

sandymann2@mailinator.com
Replace @mailinator.com with @tiscali.co.uk

> Hi.  I have the following formula in my spreadsheet that I need some help
> with:
[quoted text clipped - 23 lines]
>
> Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.