samwell

New Member
Joined
Jul 20, 2012
Messages
3
I am trying to insert a string of formulas on a separate sheet from my data, ie standard deviation, median, mode, etc. I am trying to get the sheet of formulas (sheet 2) to update automatically given the data that is selected on sheet 1. Sheet 1 is filtered by categories allowing the user to select which category to view, which then updates the data. However, I cannot get the formulas to update when I change the visible data. If I do not select an exact range, eg if I just select row E, it includes all data, even data not visible. Any suggestions?

Thanks!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I just answered a similar question yesterday and this morning.

The Subtotal function will allow you to select any of a number of mathematical functions to be applied against visible cells. These functions include Sum, Average, Count, Max, Product, and Standard Deviation. The results change as you change the filter criteria.
 
Upvote 0
Sorry for taking a month to reply, I didn't see your response. But, thank you so much! This worked beautifully. Do you have any idea how I could do this for Median?
 
Upvote 0
Sorry for taking a month to reply, I didn't see your response. But, thank you so much! This worked beautifully. Do you have any idea how I could do this for Median?
 
Upvote 0
The following assumes your data is in column B and there are no more than 100 rows:

=MEDIAN(IF(SUBTOTAL(3,OFFSET(B2:B100,ROW(B2:B100)-ROW(B2),0,1)),B2:B100))

To enter this as an array press CONTROL+SHIFT+ENTER.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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