Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Help! How do I ignore blanks cells in an array?

I'm compiling some stats and I want to figure out how to ignore blank cells in a range within an array. I'm a rookie to all this, so speak "idiot" to me.

Specifically, I'm trying to factor how consistent players are by calculating how many weeks were spent in various ranges based on their overall average. The issue I'm having is that each player didn't play each week, which is messing up the results.

This is where I'm at right now:

=SUM((G38:U38=(AC38-50))*(G38:U38<=(AC38-10)))

This shows a 16 week season (G38:U38 represents each week). AC38 represents the player's season average. The issue is that this player only played in 8 of the team's 16 weeks. The average is correct, but the array is counting the 8 weeks that he didn't play as "0."

(This particular array is displaying the number of weeks the player was 10-50 points under his season average.)

Can anybody out there help a stat-geek learn a new trick?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 829
Default Help! How do I ignore blanks cells in an array?

"jblanks7" wrote:
Subject: Help! How do I ignore blanks cells in an array?
=SUM((G38:U38=(AC38-50))*(G38:U38<=(AC38-10)))

This shows a 16 week season (G38:U38 represents each week).
AC38 represents the player's season average. The issue is
that this player only played in 8 of the team's 16 weeks.
The average is correct, but the array is counting the 8
weeks that he didn't play as "0."


I think you want the following array-entered formula:

=SUM((G38:U38=AC38-50)*(G38:U38<=AC38-10)*(G38:U38<""))

I think you know that "array-entered" means press ctrl+shift+Enter instead
of just Enter.

I find that array-entered formulas are often difficult to maintain. And
sometimes they __appear__ to work (i.e. there is no error) when we make the
mistake of simply pressing Enter; but in fact, the result is incorrect.

For that reason, I prefer to use SUMPRODUCT for such formulas.
Normally-enter (just press Enter) the following formula:

=SUMPRODUCT((G38:U38=AC38-50)*(G38:U38<=AC38-10)*(G38:U38<""))

Also, if you are using Excel 2007 or later and you do not need Excel 2003
compatibility (e.g. to share the file with others who might have older Excel
versions), you could use COUNTIFS, to wit:

=COUNTIFS(G38:U38,"="&AC38-50,G38:U38,"<="&AC38-10,G38:U38,"<")

  #3   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by jblanks7 View Post
I'm compiling some stats and I want to figure out how to ignore blank cells in a range within an array. I'm a rookie to all this, so speak "idiot" to me.

Specifically, I'm trying to factor how consistent players are by calculating how many weeks were spent in various ranges based on their overall average. The issue I'm having is that each player didn't play each week, which is messing up the results.

This is where I'm at right now:

=SUM((G38:U38=(AC38-50))*(G38:U38<=(AC38-10)))

This shows a 16 week season (G38:U38 represents each week). AC38 represents the player's season average. The issue is that this player only played in 8 of the team's 16 weeks. The average is correct, but the array is counting the 8 weeks that he didn't play as "0."

(This particular array is displaying the number of weeks the player was 10-50 points under his season average.)

Can anybody out there help a stat-geek learn a new trick?

Hi,

As a fellow "stat-geek" I'm happy to help, but perhaps if you posted some example data it would make things easier.

S.
  #4   Report Post  
Junior Member
 
Posts: 2
Default

Quote:
Originally Posted by joeu2004[_2_] View Post
"jblanks7" wrote:
Subject: Help! How do I ignore blanks cells in an array?
=SUM((G38:U38=(AC38-50))*(G38:U38<=(AC38-10)))

This shows a 16 week season (G38:U38 represents each week).
AC38 represents the player's season average. The issue is
that this player only played in 8 of the team's 16 weeks.
The average is correct, but the array is counting the 8
weeks that he didn't play as "0."


I think you want the following array-entered formula:

=SUM((G38:U38=AC38-50)*(G38:U38<=AC38-10)*(G38:U38<""))

I think you know that "array-entered" means press ctrl+shift+Enter instead
of just Enter.

I find that array-entered formulas are often difficult to maintain. And
sometimes they __appear__ to work (i.e. there is no error) when we make the
mistake of simply pressing Enter; but in fact, the result is incorrect.

For that reason, I prefer to use SUMPRODUCT for such formulas.
Normally-enter (just press Enter) the following formula:

=SUMPRODUCT((G38:U38=AC38-50)*(G38:U38<=AC38-10)*(G38:U38<""))

Also, if you are using Excel 2007 or later and you do not need Excel 2003
compatibility (e.g. to share the file with others who might have older Excel
versions), you could use COUNTIFS, to wit:

=COUNTIFS(G38:U38,"="&AC38-50,G38:U38,"<="&AC38-10,G38:U38,"<")



Thanks so much! The "COUNTIFS" worked great for me!
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
Ignore Blanks SEF Excel Discussion (Misc queries) 2 April 27th 10 08:10 PM
MATCH to ignore blank cells in array Tony Gardner Excel Worksheet Functions 3 September 10th 09 02:00 PM
ignore blanks in dropdown geebee Excel Programming 3 September 7th 07 11:16 PM
How can I ignore blanks when concatenating cells in Excel? NatChat Excel Discussion (Misc queries) 5 February 26th 07 05:01 AM
Ignore Blanks Todd Excel Programming 3 September 23rd 04 11:48 AM


All times are GMT +1. The time now is 05:21 AM.

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

About Us

"It's about Microsoft Excel"