Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
FPJ FPJ is offline
external usenet poster
 
Posts: 19
Default AVERAGE formula. PLEASE HELP!!

I know this is very simple problem to most, if not all, of you here but I am
trying to figure out how to create the formula to get the average of column B
of reports created in a certain month (ex. July). Please note that some cells
in column B have the #VALUE! and the dates in column A are in the x/x/xxxx
format. Please help. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default AVERAGE formula. PLEASE HELP!!

=AVERAGE(IF(MONTH(A1:A1000)=7,IF(ISNUMBER(B1:B1000 ),B1:B1000,""),""))
Then Press Ctrl+Shift+Enter as this is an array formula

Here is the breakdown on this formula:
Average IF the Month of Column A = 7 (July) and If the same row in
column B is a number.

HTH

Charles Chickering

FPJ wrote:
I know this is very simple problem to most, if not all, of you here but I am
trying to figure out how to create the formula to get the average of column B
of reports created in a certain month (ex. July). Please note that some cells
in column B have the #VALUE! and the dates in column A are in the x/x/xxxx
format. Please help. Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
FPJ FPJ is offline
external usenet poster
 
Posts: 19
Default AVERAGE formula. PLEASE HELP!!

You are all great. I need just one formula and this works just fine. Thank
you ALL!! I really appreciate it.

"Die_Another_Day" wrote:

=AVERAGE(IF(MONTH(A1:A1000)=7,IF(ISNUMBER(B1:B1000 ),B1:B1000,""),""))
Then Press Ctrl+Shift+Enter as this is an array formula

Here is the breakdown on this formula:
Average IF the Month of Column A = 7 (July) and If the same row in
column B is a number.

HTH

Charles Chickering

FPJ wrote:
I know this is very simple problem to most, if not all, of you here but I am
trying to figure out how to create the formula to get the average of column B
of reports created in a certain month (ex. July). Please note that some cells
in column B have the #VALUE! and the dates in column A are in the x/x/xxxx
format. Please help. Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default AVERAGE formula. PLEASE HELP!!

=Average(if(isnumber(B1:B100),B1:B100)*(Month(A1:A 100)=7))

entered with Ctrl+Shift+enter rather than just enter.

--
Regards,
Tom Ogilvy


"FPJ" wrote:

I know this is very simple problem to most, if not all, of you here but I am
trying to figure out how to create the formula to get the average of column B
of reports created in a certain month (ex. July). Please note that some cells
in column B have the #VALUE! and the dates in column A are in the x/x/xxxx
format. Please help. Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default AVERAGE formula. PLEASE HELP!!

Tom, In attempt to improve my knowledge of the "SumProduct" function I
attempted to do this using it. Any suggestions on how to shorten this?
=SUMPRODUCT(--IF(ISNUMBER(B1:B37),B1:B37)*--(MONTH(A1:A37)=7))/SUMPRODUCT(--IF(ISNUMBER(B1:B37),1)*--(MONTH(A1:A37)=7))

Thanks,

Charles Chickering

P.S. FPJ this formula does not require the Ctrl+Shift+Enter

Tom Ogilvy wrote:
=Average(if(isnumber(B1:B100),B1:B100)*(Month(A1:A 100)=7))

entered with Ctrl+Shift+enter rather than just enter.

--
Regards,
Tom Ogilvy


"FPJ" wrote:

I know this is very simple problem to most, if not all, of you here but I am
trying to figure out how to create the formula to get the average of column B
of reports created in a certain month (ex. July). Please note that some cells
in column B have the #VALUE! and the dates in column A are in the x/x/xxxx
format. Please help. Thanks.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default AVERAGE formula. PLEASE HELP!!

Yeah, use the AVERAGE array formula.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Die_Another_Day" wrote in message
ups.com...
Tom, In attempt to improve my knowledge of the "SumProduct" function I
attempted to do this using it. Any suggestions on how to shorten this?

=SUMPRODUCT(--IF(ISNUMBER(B1:B37),B1:B37)*--(MONTH(A1:A37)=7))/SUMPRODUCT(--
IF(ISNUMBER(B1:B37),1)*--(MONTH(A1:A37)=7))

Thanks,

Charles Chickering

P.S. FPJ this formula does not require the Ctrl+Shift+Enter

Tom Ogilvy wrote:
=Average(if(isnumber(B1:B100),B1:B100)*(Month(A1:A 100)=7))

entered with Ctrl+Shift+enter rather than just enter.

--
Regards,
Tom Ogilvy


"FPJ" wrote:

I know this is very simple problem to most, if not all, of you here

but I am
trying to figure out how to create the formula to get the average of

column B
of reports created in a certain month (ex. July). Please note that

some cells
in column B have the #VALUE! and the dates in column A are in the

x/x/xxxx
format. Please help. Thanks.




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default AVERAGE formula. PLEASE HELP!!

Sumproduct is a convenient way to perform array formula analysis for those
array formula problems that fit the paradigm of Sumproduct. It isn't a magic
elixer. In this case, there is no reason to use a more verbose sumproduct
over the average formula. Now I haven't used FAST Excel to do timing tests
so my statement is made in general without quantitative certification - but
for the majority of uses, I think they are sufficiently equal in performance.


--
Regards,
Tom Ogilvy



"Die_Another_Day" wrote:

Tom, In attempt to improve my knowledge of the "SumProduct" function I
attempted to do this using it. Any suggestions on how to shorten this?
=SUMPRODUCT(--IF(ISNUMBER(B1:B37),B1:B37)*--(MONTH(A1:A37)=7))/SUMPRODUCT(--IF(ISNUMBER(B1:B37),1)*--(MONTH(A1:A37)=7))

Thanks,

Charles Chickering

P.S. FPJ this formula does not require the Ctrl+Shift+Enter

Tom Ogilvy wrote:
=Average(if(isnumber(B1:B100),B1:B100)*(Month(A1:A 100)=7))

entered with Ctrl+Shift+enter rather than just enter.

--
Regards,
Tom Ogilvy


"FPJ" wrote:

I know this is very simple problem to most, if not all, of you here but I am
trying to figure out how to create the formula to get the average of column B
of reports created in a certain month (ex. July). Please note that some cells
in column B have the #VALUE! and the dates in column A are in the x/x/xxxx
format. Please help. Thanks.



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default AVERAGE formula. PLEASE HELP!!

As Tom says, an array formula and SP would be roughly equivalent in
performance ... if you were comparing like for like. But by trying to
calculate an average with SP in this manner you perform the bulk of the
calculation twice, once for the divisor, once for the dividend, which makes
it far more inefficient. My timings show it is nearly twice as slow, as
would be expected. The array formula here not only is more obvious (because
it states AVERAGE), but is twice as quick.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Tom Ogilvy" wrote in message
...
Sumproduct is a convenient way to perform array formula analysis for those
array formula problems that fit the paradigm of Sumproduct. It isn't a

magic
elixer. In this case, there is no reason to use a more verbose

sumproduct
over the average formula. Now I haven't used FAST Excel to do timing

tests
so my statement is made in general without quantitative certification -

but
for the majority of uses, I think they are sufficiently equal in

performance.


--
Regards,
Tom Ogilvy



"Die_Another_Day" wrote:

Tom, In attempt to improve my knowledge of the "SumProduct" function I
attempted to do this using it. Any suggestions on how to shorten this?

=SUMPRODUCT(--IF(ISNUMBER(B1:B37),B1:B37)*--(MONTH(A1:A37)=7))/SUMPRODUCT(--
IF(ISNUMBER(B1:B37),1)*--(MONTH(A1:A37)=7))

Thanks,

Charles Chickering

P.S. FPJ this formula does not require the Ctrl+Shift+Enter

Tom Ogilvy wrote:
=Average(if(isnumber(B1:B100),B1:B100)*(Month(A1:A 100)=7))

entered with Ctrl+Shift+enter rather than just enter.

--
Regards,
Tom Ogilvy


"FPJ" wrote:

I know this is very simple problem to most, if not all, of you here

but I am
trying to figure out how to create the formula to get the average of

column B
of reports created in a certain month (ex. July). Please note that

some cells
in column B have the #VALUE! and the dates in column A are in the

x/x/xxxx
format. Please help. Thanks.





  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default AVERAGE formula. PLEASE HELP!!

Tx for the info guys.

Charles

Bob Phillips wrote:
As Tom says, an array formula and SP would be roughly equivalent in
performance ... if you were comparing like for like. But by trying to
calculate an average with SP in this manner you perform the bulk of the
calculation twice, once for the divisor, once for the dividend, which makes
it far more inefficient. My timings show it is nearly twice as slow, as
would be expected. The array formula here not only is more obvious (because
it states AVERAGE), but is twice as quick.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Tom Ogilvy" wrote in message
...
Sumproduct is a convenient way to perform array formula analysis for those
array formula problems that fit the paradigm of Sumproduct. It isn't a

magic
elixer. In this case, there is no reason to use a more verbose

sumproduct
over the average formula. Now I haven't used FAST Excel to do timing

tests
so my statement is made in general without quantitative certification -

but
for the majority of uses, I think they are sufficiently equal in

performance.


--
Regards,
Tom Ogilvy



"Die_Another_Day" wrote:

Tom, In attempt to improve my knowledge of the "SumProduct" function I
attempted to do this using it. Any suggestions on how to shorten this?

=SUMPRODUCT(--IF(ISNUMBER(B1:B37),B1:B37)*--(MONTH(A1:A37)=7))/SUMPRODUCT(--
IF(ISNUMBER(B1:B37),1)*--(MONTH(A1:A37)=7))

Thanks,

Charles Chickering

P.S. FPJ this formula does not require the Ctrl+Shift+Enter

Tom Ogilvy wrote:
=Average(if(isnumber(B1:B100),B1:B100)*(Month(A1:A 100)=7))

entered with Ctrl+Shift+enter rather than just enter.

--
Regards,
Tom Ogilvy


"FPJ" wrote:

I know this is very simple problem to most, if not all, of you here

but I am
trying to figure out how to create the formula to get the average of

column B
of reports created in a certain month (ex. July). Please note that

some cells
in column B have the #VALUE! and the dates in column A are in the

x/x/xxxx
format. Please help. Thanks.



  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default AVERAGE formula. PLEASE HELP!!

=AVERAGE(IF((ISNUMBER(B1:B100))*(MONTH(A1:A100)=7) ,B1:B100))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"FPJ" wrote in message
...
I know this is very simple problem to most, if not all, of you here but I

am
trying to figure out how to create the formula to get the average of

column B
of reports created in a certain month (ex. July). Please note that some

cells
in column B have the #VALUE! and the dates in column A are in the x/x/xxxx
format. Please help. Thanks.





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
I get the #div/0! when using the formula =average(d33:d48) Glen Excel Discussion (Misc queries) 4 September 27th 08 01:18 PM
A formula to AVERAGE IF but only average a set number of values [email protected] Excel Worksheet Functions 2 January 31st 08 08:28 PM
formula average Melle Excel Discussion (Misc queries) 3 October 6th 05 03:20 PM
Average Formula Anthony Excel Discussion (Misc queries) 3 July 14th 05 04:38 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM


All times are GMT +1. The time now is 03:01 AM.

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"