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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

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