PC Review


Reply
Thread Tools Rate Thread

Average cells with #DIV/0!

 
 
Keller2
Guest
Posts: n/a
 
      19th Jun 2008
I have a WORKBOOK with series of monthly worksheets with a TOTALS worksheet
that pulls the values from the appropriate monthly worksheets which are input
as each months numbers are added. The TOTALS worksheet needs to average only
the monthly totals to date. The cells in the TOTALS worksheet display #DIV/0!
until the corresponding worksheet is updated each month.

How to I get an average of just the cells that contain values and not count
the cells that display #DIV/0!, and do not have values yet?

 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      19th Jun 2008
Try this array* formula:

=AVERAGE(IF(NOT(ISERROR(A1:A12)),A1:A12))

* An array formula has to be committed using CTRL-SHIFT-ENTER (CSE)
rather than the usual ENTER. If you do this correctly then Excel will
wrap curly braces { } around the formula when viewed in the formula
bar - do not type these yourself. Use CSE again whenever you edit the
formula.

Obviously, adjust the ranges to suit your situation.

Hope this helps.

Pete

On Jun 19, 2:41*pm, Keller2 <nrkel...@comerica.com> wrote:
> I have a WORKBOOK with series of monthly worksheets with a TOTALS worksheet
> that pulls the values from the appropriate monthly worksheets which are input
> as each months numbers are added. *The TOTALS worksheet needs to average only
> the monthly totals to date. The cells in the TOTALS worksheet display #DIV/0!
> until the corresponding worksheet is updated each month.
>
> How to I get an average of just the cells that contain values and not count
> the cells that display #DIV/0!, and do not have values yet?


 
Reply With Quote
 
Gary''s Student
Guest
Posts: n/a
 
      19th Jun 2008
Say we have data in A1 thru A10, but some may have errors

=AVERAGE(IF(ISNUMBER(A1:A10),A1:A10))

an array formula placed with CNTRL-SHFT-ENTER rather than just the ENTER key
will exclude errors.
--
Gary''s Student - gsnu200793


"Keller2" wrote:

> I have a WORKBOOK with series of monthly worksheets with a TOTALS worksheet
> that pulls the values from the appropriate monthly worksheets which are input
> as each months numbers are added. The TOTALS worksheet needs to average only
> the monthly totals to date. The cells in the TOTALS worksheet display #DIV/0!
> until the corresponding worksheet is updated each month.
>
> How to I get an average of just the cells that contain values and not count
> the cells that display #DIV/0!, and do not have values yet?
>

 
Reply With Quote
 
Keller2
Guest
Posts: n/a
 
      19th Jun 2008
It worked!!!! Thank you so very much.

"Pete_UK" wrote:

> Try this array* formula:
>
> =AVERAGE(IF(NOT(ISERROR(A1:A12)),A1:A12))
>
> * An array formula has to be committed using CTRL-SHIFT-ENTER (CSE)
> rather than the usual ENTER. If you do this correctly then Excel will
> wrap curly braces { } around the formula when viewed in the formula
> bar - do not type these yourself. Use CSE again whenever you edit the
> formula.
>
> Obviously, adjust the ranges to suit your situation.
>
> Hope this helps.
>
> Pete
>
> On Jun 19, 2:41 pm, Keller2 <nrkel...@comerica.com> wrote:
> > I have a WORKBOOK with series of monthly worksheets with a TOTALS worksheet
> > that pulls the values from the appropriate monthly worksheets which are input
> > as each months numbers are added. The TOTALS worksheet needs to average only
> > the monthly totals to date. The cells in the TOTALS worksheet display #DIV/0!
> > until the corresponding worksheet is updated each month.
> >
> > How to I get an average of just the cells that contain values and not count
> > the cells that display #DIV/0!, and do not have values yet?

>
>

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      19th Jun 2008
You're welcome - thanks for feeding back.

Pete

On Jun 19, 3:05*pm, Keller2 <nrkel...@comerica.com> wrote:
> It worked!!!! Thank you so very much.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to average data if in cells, but ignore blank cells. Paula Microsoft Excel Worksheet Functions 4 1st Jul 2009 05:38 PM
zero value cells/blank cells causing error in AVERAGE? LilBeanie1033 Microsoft Excel Worksheet Functions 5 19th Mar 2009 06:39 PM
Excel-only average cells if two cells in same row, meet two condit =?Utf-8?B?RXVsaWUtRGVudmVy?= Microsoft Excel Worksheet Functions 5 5th Oct 2006 11:15 PM
average cells, show 0 if nothing to average =?Utf-8?B?S3ljYWp1bg==?= Microsoft Excel Misc 8 21st Jun 2006 07:36 PM
average 2 cells (Mileage Divide by Gallons in two cells =?Utf-8?B?ZGlwNDM=?= Microsoft Excel Misc 1 31st Mar 2006 04:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:20 AM.