Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default average and stdev

Say I have two columns (A and B) going from rows 1 to 20. Is there
some elegant way to add the numbers across each row, THEN take the
average and stdev of the column(besides making a new column with the
sum across the row)? I've done it (inelegantly) by doing:
=AVERAGE(A1+B1, A2+B2, A3+B3, .... , A19+B19, A20+B20)
and
=STDEV(A1+B1, A2+B2, A3+B3, .... , A19+B19, A20+B20)

it works, but it looks bad... just wondering if there was a better
way...

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default average and stdev

Jenny

One way:

=AVERAGE(A1:A20+B1:B20)

This is an array formula and it must be entered with
<Shift<Ctrl<Enter, also if edited later.

Similar for STDEV.

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Jenny" skrev i en meddelelse
om...
Say I have two columns (A and B) going from rows 1 to 20. Is there
some elegant way to add the numbers across each row, THEN take the
average and stdev of the column(besides making a new column with the
sum across the row)? I've done it (inelegantly) by doing:
=AVERAGE(A1+B1, A2+B2, A3+B3, .... , A19+B19, A20+B20)
and
=STDEV(A1+B1, A2+B2, A3+B3, .... , A19+B19, A20+B20)

it works, but it looks bad... just wondering if there was a better
way...

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default average and stdev

Jenny,

=AVERAGE(A1:A20+B1:B20) and
=STDEV(A1:A20+B1:B20)

You have to "array enter" these formula i.e.
type the formula and then pres Cntr + Shift + Enter

the formual's will be surrounded bij { }.

(You shouldn't type these yourself, if you array enter they will be added to
your formula)

--
Regards,
Auk Ales

* Please reply to this newsgroup only *
* I will not react on unsolicited e-mails *

"Jenny" wrote in message
om...
Say I have two columns (A and B) going from rows 1 to 20. Is there
some elegant way to add the numbers across each row, THEN take the
average and stdev of the column(besides making a new column with the
sum across the row)? I've done it (inelegantly) by doing:
=AVERAGE(A1+B1, A2+B2, A3+B3, .... , A19+B19, A20+B20)
and
=STDEV(A1+B1, A2+B2, A3+B3, .... , A19+B19, A20+B20)

it works, but it looks bad... just wondering if there was a better
way...

Thanks!



  #4   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default average and stdev

Jenny wrote:

Say I have two columns (A and B) going from rows 1 to 20. Is there
some elegant way to add the numbers across each row, THEN take the
average and stdev of the column(besides making a new column with the
sum across the row)? I've done it (inelegantly) by doing:
=AVERAGE(A1+B1, A2+B2, A3+B3, .... , A19+B19, A20+B20)
and
=STDEV(A1+B1, A2+B2, A3+B3, .... , A19+B19, A20+B20)

it works, but it looks bad... just wondering if there was a better
way...


Yes there is: Array Formulas...

=AVERAGE(A1:B1+A20:B20)

=STDEV(A1:B1+A20:B20)

Do you know how to enter array formulas? If you don't, once you write
the formula, instead of pressing ENTER, press CTRL+SHIFT+ENTER. You'll
see in the "formula line", the formula surrounded by brackets {}, this
means is an array formula.

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

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
STDEV Kimo Excel Discussion (Misc queries) 3 January 13th 06 02:51 PM
average and stdev from groups of data Charlie Excel Worksheet Functions 2 January 9th 06 03:56 AM
StDev Results Michael Excel Discussion (Misc queries) 1 August 22nd 05 09:33 PM
AVERAGE and STDEV functions with logic t-rung Excel Worksheet Functions 1 May 26th 05 07:11 PM
STDEV...HELP JRH New Users to Excel 5 January 22nd 05 08:47 PM


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