Filter PivotTable based on partial character match linked to cell

carbonfx

New Member
Joined
Apr 30, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello,

I've been at this for hours and cannot seem to crack it I do not have code because nothing seems to be working. I've tried a looping method where it counts total pivot items and tries to match a partial string but nothing seems to be working.

The concept is straightforward - the color column is routinely updated and the values change. I'm trying to create a macro to eventually link to a button that when the new values update it filter based on a cell in this case it is "Red". How can this be done since "Red" would be a partial match. Not sure if it makes a difference but this data is added to a data model.

I'm trying to count ALL instances of Red automatically, the data set is very large and separating into individual colors is not practical for its intended application.

Any help is much appreciated, thank you.
 

Attachments

  • 1.jpg
    1.jpg
    104.6 KB · Views: 14

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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