A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can you AVERAGE IF and not null?



 
 
Thread Tools Display Modes
  #1  
Old May 5th, 2005, 10:52 PM
Spottkitty
external usenet poster
 
Posts: n/a
Default Can you AVERAGE IF and not null?

=AVERAGE(IF($A$3:$A$45="Photo",H3:H45))

This is the array I'm using to try to determine an average. Problem...if
the field is blank it's counting it as zero and lowering the results. It
figured 79% when it should have been 94%. 94% was returned using the simple
average formula. I'm guessing I need to nest something to not count nulls?
Help!!!

Spottkitty

  #2  
Old May 5th, 2005, 11:07 PM
JE McGimpsey
external usenet poster
 
Posts: n/a
Default

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF((A3:A45="Photo")*(H3:H45""),H3:H45))

In article ,
"Spottkitty" wrote:

=AVERAGE(IF($A$3:$A$45="Photo",H3:H45))

This is the array I'm using to try to determine an average. Problem...if
the field is blank it's counting it as zero and lowering the results. It
figured 79% when it should have been 94%. 94% was returned using the simple
average formula. I'm guessing I need to nest something to not count nulls?
Help!!!

  #3  
Old May 5th, 2005, 11:32 PM
spottkitty'
external usenet poster
 
Posts: n/a
Default

Thank you SOOOOOOOOO Much!!!! Worked like a charm!

"JE McGimpsey" wrote:

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF((A3:A45="Photo")*(H3:H45""),H3:H45))


  #4  
Old July 4th, 2009, 10:25 PM posted to microsoft.public.excel.worksheet.functions
Hijosdelongi
external usenet poster
 
Posts: 33
Default Can you AVERAGE IF and not null?

Hi,

I have a question for Excel 2003

=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Dat a!$C:$C,""))

Im trying to get the AVERAGE of this and its giving me a #VALUE! error.. $A2
is the name that is suppose to be equal in the Data! worksheet and B$1 is the
date that is suppose to be equal in the Data! worksheet. Im trying to use AND
in IF for me to have two logical test..

Can you help me with this?

Thank you so much!



"JE McGimpsey" wrote:

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF((A3:A45="Photo")*(H3:H45""),H3:H45))

In article ,
"Spottkitty" wrote:

=AVERAGE(IF($A$3:$A$45="Photo",H3:H45))

This is the array I'm using to try to determine an average. Problem...if
the field is blank it's counting it as zero and lowering the results. It
figured 79% when it should have been 94%. 94% was returned using the simple
average formula. I'm guessing I need to nest something to not count nulls?
Help!!!


  #5  
Old July 4th, 2009, 10:34 PM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Can you AVERAGE IF and not null?

You can't use the entire column for array formulas in xl2003 and below.

(Remember to use ctrl-shift-enter, too)

Hijosdelongi wrote:

Hi,

I have a question for Excel 2003

=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Dat a!$C:$C,""))

Im trying to get the AVERAGE of this and its giving me a #VALUE! error.. $A2
is the name that is suppose to be equal in the Data! worksheet and B$1 is the
date that is suppose to be equal in the Data! worksheet. Im trying to use AND
in IF for me to have two logical test..

Can you help me with this?

Thank you so much!

"JE McGimpsey" wrote:

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF((A3:A45="Photo")*(H3:H45""),H3:H45))

In article ,
"Spottkitty" wrote:

=AVERAGE(IF($A$3:$A$45="Photo",H3:H45))

This is the array I'm using to try to determine an average. Problem...if
the field is blank it's counting it as zero and lowering the results. It
figured 79% when it should have been 94%. 94% was returned using the simple
average formula. I'm guessing I need to nest something to not count nulls?
Help!!!



--

Dave Peterson
  #6  
Old July 4th, 2009, 10:48 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Can you AVERAGE IF and not null?

I have a question for Excel 2003
=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Da ta!$C:$C,""))


You can't use entire columns as range references in array formulas in Excel
2003. Use a smaller specific range.

Try it like this (array entered**)

=AVERAGE(IF((Data!A1:A10=B1)*(Data!B1:B10=A2),Data !C1:C10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Hijosdelongi" wrote in message
...
Hi,

I have a question for Excel 2003

=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Dat a!$C:$C,""))

Im trying to get the AVERAGE of this and its giving me a #VALUE! error..
$A2
is the name that is suppose to be equal in the Data! worksheet and B$1 is
the
date that is suppose to be equal in the Data! worksheet. Im trying to use
AND
in IF for me to have two logical test..

Can you help me with this?

Thank you so much!



"JE McGimpsey" wrote:

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF((A3:A45="Photo")*(H3:H45""),H3:H45))

In article ,
"Spottkitty" wrote:

=AVERAGE(IF($A$3:$A$45="Photo",H3:H45))

This is the array I'm using to try to determine an average.
Problem...if
the field is blank it's counting it as zero and lowering the results.
It
figured 79% when it should have been 94%. 94% was returned using the
simple
average formula. I'm guessing I need to nest something to not count
nulls?
Help!!!




  #7  
Old July 4th, 2009, 10:52 PM posted to microsoft.public.excel.worksheet.functions
Hijosdelongi
external usenet poster
 
Posts: 33
Default Can you AVERAGE IF and not null?

ic, but is the =AVERAGE(IF(AND( correct?

Thanks



"Dave Peterson" wrote:

You can't use the entire column for array formulas in xl2003 and below.

(Remember to use ctrl-shift-enter, too)

Hijosdelongi wrote:

Hi,

I have a question for Excel 2003

=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Dat a!$C:$C,""))

Im trying to get the AVERAGE of this and its giving me a #VALUE! error.. $A2
is the name that is suppose to be equal in the Data! worksheet and B$1 is the
date that is suppose to be equal in the Data! worksheet. Im trying to use AND
in IF for me to have two logical test..

Can you help me with this?

Thank you so much!

"JE McGimpsey" wrote:

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF((A3:A45="Photo")*(H3:H45""),H3:H45))

In article ,
"Spottkitty" wrote:

=AVERAGE(IF($A$3:$A$45="Photo",H3:H45))

This is the array I'm using to try to determine an average. Problem...if
the field is blank it's counting it as zero and lowering the results. It
figured 79% when it should have been 94%. 94% was returned using the simple
average formula. I'm guessing I need to nest something to not count nulls?
Help!!!


--

Dave Peterson

  #8  
Old July 4th, 2009, 11:13 PM posted to microsoft.public.excel.worksheet.functions
Hijosdelongi
external usenet poster
 
Posts: 33
Default Can you AVERAGE IF and not null?

EXCELENT! It worked!!! and how can I hide the #DIV/0! if there are still no
scores for that they..

Thank you


"T. Valko" wrote:

I have a question for Excel 2003
=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Da ta!$C:$C,""))


You can't use entire columns as range references in array formulas in Excel
2003. Use a smaller specific range.

Try it like this (array entered**)

=AVERAGE(IF((Data!A1:A10=B1)*(Data!B1:B10=A2),Data !C1:C10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Hijosdelongi" wrote in message
...
Hi,

I have a question for Excel 2003

=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Dat a!$C:$C,""))

Im trying to get the AVERAGE of this and its giving me a #VALUE! error..
$A2
is the name that is suppose to be equal in the Data! worksheet and B$1 is
the
date that is suppose to be equal in the Data! worksheet. Im trying to use
AND
in IF for me to have two logical test..

Can you help me with this?

Thank you so much!



"JE McGimpsey" wrote:

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF((A3:A45="Photo")*(H3:H45""),H3:H45))

In article ,
"Spottkitty" wrote:

=AVERAGE(IF($A$3:$A$45="Photo",H3:H45))

This is the array I'm using to try to determine an average.
Problem...if
the field is blank it's counting it as zero and lowering the results.
It
figured 79% when it should have been 94%. 94% was returned using the
simple
average formula. I'm guessing I need to nest something to not count
nulls?
Help!!!




  #9  
Old July 4th, 2009, 11:41 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Can you AVERAGE IF and not null?

Try it like this:

Array entered.

=IF(ISERROR(AVERAGE(IF((Data!A1:A10=B1)*(Data!B1:B 10=A2),Data!C1:C10))),"",AVERAGE(IF((Data!A1:A10=B 1)*(Data!B1:B10=A2),Data!C1:C10)))

--
Biff
Microsoft Excel MVP


"Hijosdelongi" wrote in message
...
EXCELENT! It worked!!! and how can I hide the #DIV/0! if there are still
no
scores for that they..

Thank you


"T. Valko" wrote:

I have a question for Excel 2003
=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Da ta!$C:$C,""))


You can't use entire columns as range references in array formulas in
Excel
2003. Use a smaller specific range.

Try it like this (array entered**)

=AVERAGE(IF((Data!A1:A10=B1)*(Data!B1:B10=A2),Data !C1:C10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Hijosdelongi" wrote in message
...
Hi,

I have a question for Excel 2003

=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Dat a!$C:$C,""))

Im trying to get the AVERAGE of this and its giving me a #VALUE!
error..
$A2
is the name that is suppose to be equal in the Data! worksheet and B$1
is
the
date that is suppose to be equal in the Data! worksheet. Im trying to
use
AND
in IF for me to have two logical test..

Can you help me with this?

Thank you so much!



"JE McGimpsey" wrote:

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF((A3:A45="Photo")*(H3:H45""),H3:H45))

In article ,
"Spottkitty" wrote:

=AVERAGE(IF($A$3:$A$45="Photo",H3:H45))

This is the array I'm using to try to determine an average.
Problem...if
the field is blank it's counting it as zero and lowering the
results.
It
figured 79% when it should have been 94%. 94% was returned using
the
simple
average formula. I'm guessing I need to nest something to not count
nulls?
Help!!!






  #10  
Old July 4th, 2009, 11:54 PM posted to microsoft.public.excel.worksheet.functions
Hijosdelongi
external usenet poster
 
Posts: 33
Default Can you AVERAGE IF and not null?

Does ISERROR works in Excel 2003?

Thanks


"T. Valko" wrote:

Try it like this:

Array entered.

=IF(ISERROR(AVERAGE(IF((Data!A1:A10=B1)*(Data!B1:B 10=A2),Data!C1:C10))),"",AVERAGE(IF((Data!A1:A10=B 1)*(Data!B1:B10=A2),Data!C1:C10)))

--
Biff
Microsoft Excel MVP


"Hijosdelongi" wrote in message
...
EXCELENT! It worked!!! and how can I hide the #DIV/0! if there are still
no
scores for that they..

Thank you


"T. Valko" wrote:

I have a question for Excel 2003
=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Da ta!$C:$C,""))

You can't use entire columns as range references in array formulas in
Excel
2003. Use a smaller specific range.

Try it like this (array entered**)

=AVERAGE(IF((Data!A1:A10=B1)*(Data!B1:B10=A2),Data !C1:C10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Hijosdelongi" wrote in message
...
Hi,

I have a question for Excel 2003

=AVERAGE(IF(AND($A2=Data!$B:$B,B$1=Data!$A:$A),Dat a!$C:$C,""))

Im trying to get the AVERAGE of this and its giving me a #VALUE!
error..
$A2
is the name that is suppose to be equal in the Data! worksheet and B$1
is
the
date that is suppose to be equal in the Data! worksheet. Im trying to
use
AND
in IF for me to have two logical test..

Can you help me with this?

Thank you so much!



"JE McGimpsey" wrote:

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF((A3:A45="Photo")*(H3:H45""),H3:H45))

In article ,
"Spottkitty" wrote:

=AVERAGE(IF($A$3:$A$45="Photo",H3:H45))

This is the array I'm using to try to determine an average.
Problem...if
the field is blank it's counting it as zero and lowering the
results.
It
figured 79% when it should have been 94%. 94% was returned using
the
simple
average formula. I'm guessing I need to nest something to not count
nulls?
Help!!!







 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:16 PM.


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