#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Array Formula

Hi All,

I am trying to write an array formula that calculates the average of an
array for a range of dates.

I have the following spreadsheet set up:

A B C D
1 Range Sep-06 Oct-06
2 Date Sep-06 Oct-06 Nov-06
3 Amount $500,000.00 $550,000.00 $600,000.00

I am using the following formula:

{=AVERAGE(IF(AND((B2:D2)=$B$1,(B2:D2)<=$C$1),B3:D 3))}

The problem is that the formula is returning $0.00. I have tried many
variations of this but with no luck.

Can anyone help me write an array formula that will calculate the average of
the amount for the given range....i.e. for the range specified above the
formula should return $$525,000.

I hope I am making sense....please help.

Brendan

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default Array Formula

Hi!

Range Sep-06 Oct-06
Date Sep-06 Oct-06 Nov-06


Are those real dates?

=AVERAGE(IF((B2:D2=$B$1)*(B2:D2<=$C$1),B2:D2))

Biff

"Brendan Vassallo" wrote in
message ...
Hi All,

I am trying to write an array formula that calculates the average of an
array for a range of dates.

I have the following spreadsheet set up:

A B C D
1 Range Sep-06 Oct-06
2 Date Sep-06 Oct-06 Nov-06
3 Amount $500,000.00 $550,000.00 $600,000.00

I am using the following formula:

{=AVERAGE(IF(AND((B2:D2)=$B$1,(B2:D2)<=$C$1),B3:D 3))}

The problem is that the formula is returning $0.00. I have tried many
variations of this but with no luck.

Can anyone help me write an array formula that will calculate the average
of
the amount for the given range....i.e. for the range specified above the
formula should return $$525,000.

I hope I am making sense....please help.

Brendan



  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Array Formula

Try this, array-entered:
=AVERAGE(IF(((B2:D2)=$B$1)*((B2:D2)<=$C$1),B3:D3) )
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Brendan Vassallo" wrote:
Hi All,

I am trying to write an array formula that calculates the average of an
array for a range of dates.

I have the following spreadsheet set up:

A B C D
1 Range Sep-06 Oct-06
2 Date Sep-06 Oct-06 Nov-06
3 Amount $500,000.00 $550,000.00 $600,000.00

I am using the following formula:

{=AVERAGE(IF(AND((B2:D2)=$B$1,(B2:D2)<=$C$1),B3:D 3))}

The problem is that the formula is returning $0.00. I have tried many
variations of this but with no luck.

Can anyone help me write an array formula that will calculate the average of
the amount for the given range....i.e. for the range specified above the
formula should return $$525,000.

I hope I am making sense....please help.

Brendan

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Array Formula

Biff,

Yes they are real dates....the formula beow works so thanks for that....

"Biff" wrote:

Hi!

Range Sep-06 Oct-06
Date Sep-06 Oct-06 Nov-06


Are those real dates?

=AVERAGE(IF((B2:D2=$B$1)*(B2:D2<=$C$1),B2:D2))

Biff

"Brendan Vassallo" wrote in
message ...
Hi All,

I am trying to write an array formula that calculates the average of an
array for a range of dates.

I have the following spreadsheet set up:

A B C D
1 Range Sep-06 Oct-06
2 Date Sep-06 Oct-06 Nov-06
3 Amount $500,000.00 $550,000.00 $600,000.00

I am using the following formula:

{=AVERAGE(IF(AND((B2:D2)=$B$1,(B2:D2)<=$C$1),B3:D 3))}

The problem is that the formula is returning $0.00. I have tried many
variations of this but with no luck.

Can anyone help me write an array formula that will calculate the average
of
the amount for the given range....i.e. for the range specified above the
formula should return $$525,000.

I hope I am making sense....please help.

Brendan




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default Array Formula

You're welcome. Thanks for the feedback!

Biff

"Brendan Vassallo" wrote in
message ...
Biff,

Yes they are real dates....the formula beow works so thanks for that....

"Biff" wrote:

Hi!

Range Sep-06 Oct-06
Date Sep-06 Oct-06 Nov-06


Are those real dates?

=AVERAGE(IF((B2:D2=$B$1)*(B2:D2<=$C$1),B2:D2))

Biff

"Brendan Vassallo" wrote in
message ...
Hi All,

I am trying to write an array formula that calculates the average of an
array for a range of dates.

I have the following spreadsheet set up:

A B C D
1 Range Sep-06 Oct-06
2 Date Sep-06 Oct-06 Nov-06
3 Amount $500,000.00 $550,000.00 $600,000.00

I am using the following formula:

{=AVERAGE(IF(AND((B2:D2)=$B$1,(B2:D2)<=$C$1),B3:D 3))}

The problem is that the formula is returning $0.00. I have tried many
variations of this but with no luck.

Can anyone help me write an array formula that will calculate the
average
of
the amount for the given range....i.e. for the range specified above
the
formula should return $$525,000.

I hope I am making sense....please help.

Brendan






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
Array Formula Not Working with Range with Formulas [email protected] Excel Discussion (Misc queries) 4 February 1st 06 02:01 PM
Array formula returning wrong results TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 November 19th 05 10:29 AM
referencing the value of a cell containing an array formula KR Excel Worksheet Functions 4 July 5th 05 06:15 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 08:05 PM.

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"