Error Handling #N/A with AVERAGE Function - Average of values in Row

  • Thread starter Thread starter Sam via OfficeKB.com
  • Start date Start date
S

Sam via OfficeKB.com

Hi All,

I have a spreadsheet with an Array entered Formula (based on Rows using the
TRANSPOSE Function) that produces the #N/A error when no further data is
available to be calculated: this in itself is fine - the #N/A is disguised
with Conditional Formatting. However, if possible, I would like to find the
AVERAGE of the values in each Row excluding those cells with #N/A from the
calculation.

I've tried a few variations using either the ISERROR or ISNA Function nested
with the AVERAGE Function. I get either zero or #N/A returned.

The original Formulae providing the results that I now wish to Average was
brilliantly created by Dominic in this previous Post: "Count Intervals of
Filtered TEXT values in Column and Return Count across a Row"

http://www.officekb.com/Uwe/Forum.a...lues-in-Column-and#[email protected]


The values returned from the above Formulae is numeric and formatted as
GENERAL.

Thanks
Sam
 
try this array formula entered with ctrl+shift+enter
=AVERAGE(IF(NOT(ISERROR($C$8:$C$10)),$C$8:$C$10))
 
brilliantly created by Dominic
Believe there's a typo there ... should be: Domenic
He has a habit of doing that!
I'm guessing <g> it should read as: > She has a habit of doing that!
 
Hi Max!
I'm guessing <g> it should read as: > She has a habit of doing that!

My apologies if Domenic is not a "he" !

Domenic, sounds like a "he" to me! BWDIK!

Biff
 
Hi Don,

Thank you very much for your assistance - your Formula did the job.

Cheers
Sam
 
Hi Max,

I thought I'd do the honourable thing and own up to my typo that started this
conversation. It is Domenic, as you said.

Cheers
Sam
 
An alternative to the solutions provided by Biff and Don would be to
change the formula to return a blank instead of #N/A...

1) Select NewSheet!B8:L8

2) Enter the following formula:

=IF(COLUMN()-COLUMN(B8)+1<COUNTIF(Range,A8)+(FirstRow=""),TRANSPOSE(Array
2-Array1)-1,"")

3) Confirm with CONTROL+SHIFT+ENTER

In this case, there would be no need to use conditional formatting.

Hope this helps!
 
Max said:
.. and perhaps Domenic could put to rest our guesses <g> !

I just checked and it seems that I'm a 'he'. <VBG>

So it looks like Biff get's the C-gar! <BG>
 
Hi Domenic,

Thank you very much for additional assistance and great working Formulas.

Cheers
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top