Exclude Hidden Rows from being used within a formula

Hughy649

New Member
Joined
Mar 23, 2013
Messages
8
Good afternoon

My array is all data, some of it, at times, I want to hide and not be included in the calculations. I searched the internet and I believe that Subtotal should work to hide any hidden rows from being included in a formula. However, I can't figure out where to include in it the formula - front, within, the array itself?!?

I use excel 2010 and the formulas are below. Any help would be greatly appreciated.

Cheers

Andy


=SMALL(BJ108:BJ117,COUNTIF(BJ108:BJ117,0)+1) - finding the smallest # not including zero's

=(SUM(BJ108:BJ117)-AX111-AY111)/(AV109-2) - finding the weighted average
 
One last issue, being counting the number of unhidden cells in range S20:S54, with values over 0.

This looked like it should work but to no avail.

=SUMPRODUCT(SUBTOTAL(103,OFFSET(S20:S54,ROW(S20:S54)-ROW(S20),0,1)),--(S20:S54>0))

Thanks in advance.

Andy

Try...

=SUMPRODUCT(SUBTOTAL(102,OFFSET(S20,ROW(S20:S54)-ROW(S20),0,1)),--ISNUMBER(S20:S54),--(S20:S54>0))
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Thanks Aladin

It worked well on most columns, but not all, then I realized that some numbers were coming over as "x" and not just x. Once corrected, all was great.

Many thanks.

Andy
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,204
Members
449,072
Latest member
DW Draft

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