Dynamic Calculation for Last Column

sg2209

Board Regular
Joined
Oct 27, 2017
Messages
117
Office Version
  1. 2016
Good Afternoon,

I hope all the mentors are doing good :)

Need help on one of the issue where i have to calculate the Average in Cell B5 and Medican in C5 , source data is in Cell 22 to 78 and column keeps on Chanding when new data is added .

How do i calucualte

For Example :-

Date is in Coumn B22 to B78 , on next date it is in C22 to C78, then D22 to D78........it will continue until 30 columns but daily average and median is getting changed to new addition . Instead of doing it manually how do i do that with any formula or with VBA .

Please advise .


Regards
Sachin
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Something like this will work as long as there is nothing else to the right of the data.
Excel Formula:
=AVERAGE(INDEX(22:78,0,MATCH(1e+100,22:22))
 
Upvote 0
Solution
Something like this will work as long as there is nothing else to the right of the data.
Excel Formula:
=AVERAGE(INDEX(22:78,0,MATCH(1e+100,22:22))
Thank You @jasonb75 though i am not very much smart in excel and all still learning. My last Column is U

=AVERAGE(INDEX(V22:V78,0,MATCH(E1+100,V22:V22))) Should i put the formula like this in Cell B5 , Sorry i know it seems a silly question and also will this change when any data is added ?
 
Upvote 0
Don't put any columns in there, it will work better if it looks at the entire row. Just enter the formula exactly as I wrote it, don't change anything.
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,099
Members
449,205
Latest member
ralemanygarcia

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