Vector function on multiple rows [solved]

goldfish

Well-known Member
Joined
Aug 23, 2005
Messages
712
Is there a way to use a vector function to take the average of every row's standard deviation? i.e.

=AVERAGE(STDEV(1:1),....,STDEV(15:15))

The following does NOT work (understandably)

{=AVERAGE(STDEV(1:15)}

because the STDEV() function takes the whole double array, instead of simply each row, so this ends up being simply the STDEV() function.

Thanks!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Just simplify the issue and put the 15 standard deviations in 15 cells and then calculate the average of those 15 cells.
 
Upvote 0
Try...

=AVERAGE(SUBTOTAL(7,OFFSET(A1:D15,ROW(A1:D15)-MIN(ROW(A1:D15)),0,1)))

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Adjust the range accordingly.

Hope this helps!
 
Upvote 0
Yes, OFFSET is a very powerful function but unless you modified Domenic's suggestion, it doesn't meet the requirements of the original post.

goldfish said:
Thanks a lot Domenic, I didn't realize how useful offset is! :biggrin:
 
Upvote 0
Using SUBTOTAL to get around the behavior of STDEV is rather clever -- sneaky but clever! I wonder how robust the technique is...

Domenic said:
Try...

=AVERAGE(SUBTOTAL(7,OFFSET(A1:D15,ROW(A1:D15)-MIN(ROW(A1:D15)),0,1)))

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Adjust the range accordingly.

Hope this helps!
 
Upvote 0
tusharm said:
Yes, OFFSET is a very powerful function but unless you modified Domenic's suggestion, it doesn't meet the requirements of the original post.

Maybe I'm missing something, but I don't quite understand. Can you please explain?
 
Upvote 0
It ignores all data beyond column 15.

Use the array formula

=AVERAGE(SUBTOTAL(7,OFFSET(1:1,ROW(A1:A15)-MIN(ROW(A1:A15)),0)))

Domenic said:
tusharm said:
Yes, OFFSET is a very powerful function but unless you modified Domenic's suggestion, it doesn't meet the requirements of the original post.

Maybe I'm missing something, but I don't quite understand. Can you please explain?
 
Upvote 0
tusharm said:
It ignores all data beyond column 15.

I take it you meant, "...beyond Column D". Yes, I only included Columns A through D, instead of the whole row. I used that range as an example, but I did say to adjust the range accordingly... :)
 
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top