formula needed to extract only those values not hidden by filter

tbablue

Active Member
Joined
Apr 29, 2007
Messages
482
Office Version
  1. 365
Platform
  1. Windows
Hi forum,

I have a table with table slicers.

Is there any way (by use of formula) to extract only those values in a prescribed field that are visible after slicers are employed? I want to capture these in a different sheet.

I use this formula to sum the associated values from Planning[Wk#1]- but I want a detailing of the actual items from Planning[Demand] also.

=SUMPRODUCT((Planning[[Demand]:[Demand]]=1)*(SUBTOTAL(9,OFFSET(AE32,ROW(Planning[Wk'#1])-MIN(ROW(Planning[Wk'#1])),0))))

Any assistance most gratefully rec'd.

Thx in advance
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Change your SUBTOTAL(9 to SUBTOTAL(109

Also change your MIN to a SUBTOTAL function as well, using function 105.

109 is still a SUM, but this is the function number used to only calculate visible rows.
105 is the MIN equivalent as well

 
Upvote 0
Change your SUBTOTAL(9 to SUBTOTAL(109

Also change your MIN to a SUBTOTAL function as well, using function 105.

109 is still a SUM, but this is the function number used to only calculate visible rows.
105 is the MIN equivalent as well

Thanks for your attention - this only gives me a number - I need to see a list of the actual items in a field that remain unhidden.

For example, in the same table, I have a field called Planning[Cost Centre Name] - I need a way to extract a list of those items.

Sorry if my initial post wasn't clear.
 
Upvote 0
What exactly do you mean by this

As they will all be 1
Apols - you are quite correct.

Let me change the field.

In the same table, I have a field called Planning[Cost Centre Name]. I need a formula that will extract a list of items from that field (for example) when the table is filtered - all items in Planning[Demand] are either 1 or 0 so I can use those but I can't figure out how to implement something like INDEX and SUBTOTAL(9,OFFSET(AE32,ROW(Planning[Wk'#1])-MIN(ROW(Planning[Wk'#1])),0))) in partnership.
 
Upvote 0
Are you happy using a helper column?
 
Upvote 0
In that case you can use
Excel Formula:
=SUBTOTAL(3,[@Demand])
Change the column to any column that will always have a value & then you can use (I've called the helper column "IsVisible")
Excel Formula:
=FILTER(Planning[Cost Centre Name],(Planning[IsVisible]=1)*(Planning[Demand]=1))
You can also change your formula to
Excel Formula:
=SUMIFS(Planning[Wk'#1],Planning[Demand],1,Planning[IsVisible],1)
 
Upvote 1
Solution
In that case you can use
Excel Formula:
=SUBTOTAL(3,[@Demand])
Change the column to any column that will always have a value & then you can use (I've called the helper column "IsVisible")
Excel Formula:
=FILTER(Planning[Cost Centre Name],(Planning[IsVisible]=1)*(Planning[Demand]=1))
You can also change your formula to
Excel Formula:
=SUMIFS(Planning[Wk'#1],Planning[Demand],1,Planning[IsVisible],1)
So, I've introduced a field into my table Planning[IsVisible] that is entirely populated with 1.

How do I implement SUBTOTAL(3,Planning[@Demand])?
 
Upvote 0
Did you put the subtotal formula into the IsVisible column?
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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