Unique List From A Filtered List

excelbytes

Active Member
Joined
Dec 11, 2014
Messages
291
Office Version
  1. 365
Platform
  1. Windows
I found on this forum the answer to the issue of how to generate a unique list from a filtered list. It was from a few years ago, so I couldn't ask a follow up question. The formula works perfectly, as follows:

=UNIQUE(FILTER(Customers[Company],SUBTOTAL(3,OFFSET(Customers[[#Headers],[Company]],ROW(Customers[Company])-ROW(Customers[[#Headers],[Company]]),0))))

It doesn't seem to matter if I use 3 or 103 in the SUBTOTAL function. Can someone explain to me how the SUBTOTAL function is only identifying the unhidden rows?

Thanks in advance,
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
As you have 365 you can use this non-volatile formula
Excel Formula:
=UNIQUE(FILTER(Customers[Company],MAP(Customers[Company],LAMBDA(m,SUBTOTAL(103,m)))))

For info on subtotal have a look here SUBTOTAL Function
 
Upvote 0
Solution
I see, the key is that SUBTOTAL automatically ignores cells that have been filtered out of view. Thanks.

Now I need to go through your alternate formula to figure how that works!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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