#1   Report Post  
SimonT
 
Posts: n/a
Default Array formulas

I have a problem using array formulas in EXCEL 2002. When I use COUNT or
AVERAGE in an array formula, it treats blank cells as zeros instead of
ignoring them. I can get around it by filling the blanks with text, but this
is not always a good solution. Does anyone know of a better way, and why
array formulas change the way that blank cells are treated?

This is an example of the type of formula I am using

=COUNT(IF(Weights!$B$3:$B$392='Weight Calculations'!$C4,Weights!D$3:D$392))
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

=COUNT(IF(Weights!$B$3:$B$392='Weight

Calculations'$C4,Weights!D$3:D$392))

The COUNT function counts cells with numbers in them so
I'm assuming that you want a conditional count. Not an
ARRAY, enter normally:

=SUMPRODUCT(--(Weights!$B$3:$B$392='Weight Calculations'!
$C4),--(ISNUMBER(Weights!D$3:D$392)))

If you want to average based on those same criteria, ARRAY
entered:

=AVERAGE(IF(Weights!$B$3:$B$392='Weight Calculations'!
$C4,IF(Weights!D$3:D$3920,Weights!D$3:D$392)))

Biff

-----Original Message-----
I have a problem using array formulas in EXCEL 2002. When

I use COUNT or
AVERAGE in an array formula, it treats blank cells as

zeros instead of
ignoring them. I can get around it by filling the blanks

with text, but this
is not always a good solution. Does anyone know of a

better way, and why
array formulas change the way that blank cells are

treated?

This is an example of the type of formula I am using

=COUNT(IF(Weights!$B$3:$B$392='Weight Calculations'!

$C4,Weights!D$3:D$392))
.

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
Problem with Array Formulas and ISNUMBER Henrik Excel Worksheet Functions 1 February 10th 05 12:31 AM
sumif and array formulas Simon Murphy Excel Worksheet Functions 4 January 25th 05 05:22 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
Using wild card characters in array formulas PJB Shark Excel Worksheet Functions 3 January 19th 05 03:09 PM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


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