Calculating an Average with variable number of columns

rwmill9716

Active Member
Joined
May 20, 2006
Messages
493
Office Version
  1. 2013
Platform
  1. Windows
I have the following table which extends to 1000 rows. Starting in Row 5, I have 10 data in columns K through T. I have specified a number in Cell F1 (could be 2 to 10). Based on that specification, I want a formula for Col I that calculates the average based on the specified number of columns: here the 4 means I use columns K through N for the calculation of the average. I will always start in Column K, but the ending will vary from L to T.

Thanks for your help,

Ric

Excel 2012
FGHIJKLMNOPQRSTU
14
2
3
4Avg12345678910
53.4516.940.801.894.179.691.977.909.516.748.22
62.6124.292.690.512.979.481.548.112.466.157.53
74.4939.411.453.943.161.605.376.687.389.499.13
8
9
Sheet1
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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