SUBTOTAL, COUNTIFS, FILTERABLE DATA

SFCChase

Board Regular
Joined
Jun 25, 2013
Messages
117
Office Version
  1. 2016
Platform
  1. Windows
Due to security protocols I am unable to download xl2bb so please bear with me. I received some help with some of this earlier, but haven't been able to finish out what I need.

I have a large data set that will change depending on the filtering of various columns.

Cell F2: =SUMPRODUCT(--(B5:B160<>""),--((E5:E160>=TODAY())+(E5:E160="N/A")>0),SUBTOTAL(103,OFFSET(B5,ROW(B5:B160)-ROW(B5),1,1))) Counts # of trainings that are not expired as of today.
Cell F3: =SUBTOTAL(103,B5:B160) Counts # of personnel assigned
CellF4: =IF(F2=0,"",F2/F3)

UNITLASTFIRSTTRAINING 1TODAY: 3/10/25
# TRAINEDF2
# REQUIREDF3
% TRAINEDF4
DCNADAMSAARON5/20/25
DCNJONESJOHN2/1/25
IPSLMICHAELSMICHAEL5/20/25
IPSLJULESJULIEN/A
IPSL
MSUSNUFFYJOE3/25/25
MSUBAKERBARNEY3/24/25
MSULEWISLOU2/1/25
MSUJUAREZJUANN/A
MSUSMITHSAM3/21/25

Given the data above....if I leave unfiltered:
F2=7
F3=9
F4=77.78%

If I filter Column A to only calculate "DCN" numbers I would like to result:
F2=1
F3=2
F4=50.00%

If I filter Column A to only calculate "MSU" numbers I would like to result:
F2=4
F3=5
F4=80.00%

Using the formulas in F2:F4 I am able to get the # of trained to change appropriately. The problem I'm having is that all my demographic info (columns A, B C) are fed from another tab using the formula =IF(DATA!A6="","",DATA!A6)

When there is no name in the Data tab (such as cell B8 and B9) I am left with a blank (which is what i want), but the SUBTOTAL formula in cell F3 doesn't change the #Required to reflect the filtered data (i.e. if I filter Unit to show DCN the # resulted is still 9 instead of changing to 2)

If there is anything I can do to be more clear, please let me know. Again I apologize for not being able to use xl2bb.....I wish I could!
 

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