Pivot Table counting comma separated values filtered by Date

Grumbledore

New Member
Joined
Mar 20, 2024
Messages
3
Office Version
  1. 365
  2. 2019
  3. 2013
Platform
  1. Windows
Hello,

I am writing this post as a follow up to this thread: pivot table from columns with strings separated by commas

I would like to count the unique comma separated values in Table1[Column1] or A2:A4, which can be done by a formula posted at the link above, but I am also hoping to have this data work when Table1 is filtered by date, similar to the manner in which SUBTOTAL works.

Is this possible without VBA? Security at my work facility doesn't allow macro enabled workbooks.
1710968935363.png
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
How about
Excel Formula:
=LET(d,FILTER(Table1[Column1],MAP(Table1[Column1],LAMBDA(m,SUBTOTAL(103,m)))),e,DROP(REDUCE("",d,LAMBDA(x,y,VSTACK(x,TRIM(TEXTSPLIT(y,,","))))),1),u,UNIQUE(e),HSTACK(u,MAP(u,LAMBDA(m,SUM(--(e=m))))))
 
Upvote 0
Solution
How about
Excel Formula:
=LET(d,FILTER(Table1[Column1],MAP(Table1[Column1],LAMBDA(m,SUBTOTAL(103,m)))),e,DROP(REDUCE("",d,LAMBDA(x,y,VSTACK(x,TRIM(TEXTSPLIT(y,,","))))),1),u,UNIQUE(e),HSTACK(u,MAP(u,LAMBDA(m,SUM(--(e=m))))))
Fluff you are a beautiful person and I hope you feel valuable and appreciated wherever you are.


Problem solved.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
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