LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Non-contiguous range and Sumproduct to average

Why the IF call?
F <blank


Define blank.

If blank is an EMPTY cell then ISNUMBER prevents the empty cell from being
included in the average as numeric 0. If the logical test is TRUE the
corresponding cell in the value_if_true argument is included in the average
and if that cell is empty it's evaluated as numeric 0.

If BLANK is a formula blank then it would be ignored as a text entry in an
array reference.

Are you sure you just didn't have a "senior moment"? It's ok, I have them
sometimes and I'm not technically a senior just yet!

--
Biff
Microsoft Excel MVP


"Harlan Grove" wrote in message
...
"T. Valko" wrote...
By missing data points I assume you numbers to average.

...
=AVERAGE(IF(F52:F107=E5,IF(ISNUMBER(K52:K107),K5 2:K107)))

...

Why the IF call? With the following data in A1:B8,

F 1
F <blank
M 3
M 4
F 5
F 6
F 7
M 8

and F in A10, the array formula

=AVERAGE(IF(A1:A8=A10,B1:B8))

returns 4.75 (as per specs) rather than 3.8. The AVERAGE function
ignores cells which don't contain numbers.



 
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
calculate average from non contiguous column, ignoring (0) values Jesse Excel Worksheet Functions 3 June 30th 09 10:41 PM
average of non-contiguous range based on criteria gtslabs Excel Worksheet Functions 3 October 14th 08 11:47 AM
Average non contiguous row Scott Kieta Excel Discussion (Misc queries) 5 July 10th 07 08:56 PM
how can i use SUMPRODUCT with a non-contiguous set of cells? Wade Wilson Excel Discussion (Misc queries) 1 May 9th 05 07:24 PM
Average Non-Contiguous numbers Teri Excel Worksheet Functions 1 January 20th 05 08:33 PM


All times are GMT +1. The time now is 10:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"