Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Paul987
 
Posts: n/a
Default Array Formula to find Average Return


Hello

I have rows of data for which I am trying to find the average return in
%.
How can I do this correctly with an array formula? I need to take the
((exit minus the entry)/entry) (b-a)/a. for each row, then average
that number.

I've tried to use an array {=AVERAGE(B2:B3-A2:A3)/A2:A3}
but this seems to find: (average B-average A)/ averageA
This returns a slightly different (read: wrong) answer.
Any ideas. I think there is a quick solution involving arrays, but I
don't use them very often.
Thanks

Paul


--
Paul987
------------------------------------------------------------------------
Paul987's Profile: http://www.excelforum.com/member.php...o&userid=24850
View this thread: http://www.excelforum.com/showthread...hreadid=540360

  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Array Formula to find Average Return

Try

=AVERAGE((B1:B20-A1:A20)/A1:A20)

entered with ctrl + shift & enter

or


=SUMPRODUCT((B1:B20-A1:A20)/A1:A20)/ROWS(A1:B20)

=SUMPRODUCT((B1:B20-A1:A20)/A1:A20)/COUNT(B1:B20)


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Paul987" wrote in
message ...

Hello

I have rows of data for which I am trying to find the average return in
%.
How can I do this correctly with an array formula? I need to take the
((exit minus the entry)/entry) (b-a)/a. for each row, then average
that number.

I've tried to use an array {=AVERAGE(B2:B3-A2:A3)/A2:A3}
but this seems to find: (average B-average A)/ averageA
This returns a slightly different (read: wrong) answer.
Any ideas. I think there is a quick solution involving arrays, but I
don't use them very often.
Thanks

Paul


--
Paul987
------------------------------------------------------------------------
Paul987's Profile:
http://www.excelforum.com/member.php...o&userid=24850
View this thread: http://www.excelforum.com/showthread...hreadid=540360



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
Average Array help with a formula chedd via OfficeKB.com Excel Worksheet Functions 2 January 30th 06 11:30 PM
Array Formula to Pick Average SludgeQuake Excel Discussion (Misc queries) 3 January 11th 06 12:59 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
Array formula returning wrong results TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 November 19th 05 10:29 AM
Return Array with Array Brad Excel Worksheet Functions 10 November 17th 05 06:45 PM


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