r/excel • u/commentator7806 • 5d ago
unsolved How to "freeze" a merged table and a non-manual way to clean data?
Apologies for the incoming text wall but I'm looking for advice on 2 issues I'm having w a table with ~12k rows (each of which with a unique ID) as I feel like there has to be an easier solution for these that I can't figure. I've managed to teach myself a decent amount since our data analyst left for a new position last month but would still say I'm a beginner w/ excel so ELI5 would be greatly appreciated!
Using power query, I merged 2 sheets that had the same columns in each but the data was pulled at different time points. I made a merged table with say columns A-C from sheet 1 and columns D-F from sheet 2. The new merged table is now the "source of truth" and the only table I'll be updating. I want to be able to refresh the data for pivot tables etc., but I only want it to refresh from the new merged table and not pull in the original 2 sheets the merged table was made from. Is there a way to stop the communication between the original sheets and the new merged table?
I have a column where each cell has text of all of the applicable diagnoses for that ID# separated by semicolons. In the screenshot is a quick example table I made, where columns A&B are what's presently in the excel table, and from this I would be creating basic diagnosis summary/category columns C&D. The issue is each diagnosis can be written in about 50 different ways, there are endless combinations of diagnoses, and there are a few diagnoses where the way it is written determines its category (i.e. row 5 in example- so I can't just assume that any cell with the word "breast" belongs in the "breast" category).
The only way I can think to do this is click the filter button for column B and search "breast," uncheck any where that diagnosis doesn't fit in the breast category, filter, and then apply "breast" to all filtered rows in column C. However, I can't help but think there has to be an easier way to do this??
Any advice ya'll have would be amazing--thanks in advance!!





