formula to only check filtered results

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
2,126
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi All

so i use formula like this

=COUNTA('MY SELECTIONS'!D:D)-1

But lets say a filtered column D, is there a way th formula would only return the newly filtered data?

Thanks in advance

Dave
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi Jonmo1

That change of formula worked great.
Sorry, but i should perhaps explained, when i said i have formula LIKE above, i have similar formula also.

So im not sure ir subtotal will work for all, i will have a play around.

this is all my formula

=COUNTIFS('MY SELECTIONS'!G:G,"1ST")

=AVERAGE('MY SELECTIONS'!O:O)

=AVERAGEIF('MY SELECTIONS'!G:G,"1ST",'MY SELECTIONS'!O:O)

thanks again

dave
 
Upvote 0
Well we can only work with information given...

Add a helper column in the My Selections sheet, say column Q, and assuming row 1 is headers.
In Q2 and filled down put
=SUBTOTAL(103,G2)

Then use that column in your countifs / Averagifs formulas

=COUNTIFS('MY SELECTIONS'!G:G,"1ST",'MY SELECTIONS'!Q:Q,1)

=AVERAGEIF('MY SELECTIONS'!Q:Q,1,'MY SELECTIONS'!O:O)

=AVERAGEIFS('MY SELECTIONS'!O:O,'MY SELECTIONS'!G:G,"1ST",'MY SELECTIONS'!Q:Q,1)
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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