I have a routine that utilises a pivot table to sum weekly spend against expense codes. I'm only interesed in 4 codes out of an ever increasing list of 100+. Whenever a new code gets created, I have to manually de-select the new codes from my pivot table. Not a great hardship I hear you say but annoying none the less.
Whilst thinking of ways around it, I wondered if I could perform a replace process that checked each expense code. If the active cell doesn't contain any of the 4 codes that I want it could replace the contents with a text string of 'Not Needed'. The end result would mean that the pivot table would never need to be amended no matter how many new codes are created.
Is such a thing possible, my experience is limited to replacing a single specific with another.
Whilst thinking of ways around it, I wondered if I could perform a replace process that checked each expense code. If the active cell doesn't contain any of the 4 codes that I want it could replace the contents with a text string of 'Not Needed'. The end result would mean that the pivot table would never need to be amended no matter how many new codes are created.
Is such a thing possible, my experience is limited to replacing a single specific with another.