Forum Discussion
bleepbloop
Jul 05, 2023Copper Contributor
Comparing sheet values to external list, flag anything missing
Hello community! I'm trying to automate the comparison of alphanumeric values in a certain column of a sheet to an external list of what these values *should* be. That is, I have an external and...
mtarler
Jul 05, 2023Silver Contributor
You will need a way for Excel to get that list somehow. That could be copying that list to another sheet in the workbooks of interest, creating a defined Name that includes that list, hardcoding the list into a macro/VBA function, or possibly other ideas but somehow Excel needs access to that list. Using VBA you could have it specifically open that file but the problem is you need to open that VBA/Macro and therefore need it in each workbook or in the master workbook anyhow. If you have many different workbooks, to me it seems easy to open your 1 master worksheet and then do comparisons that way as opposed to copying it to every single other workbook. That said, if each 'new' workbook it generated based on a template, then just include that extra sheet or defined name in the template. Depending on the approach, the comparison can be easily done using built in functions and/or conditional formatting.
- bleepbloopJul 05, 2023Copper Contributor
Amazing thank you!! I'll pursue those options. FWIW, I completely agree if I were comparing many workbooks at once having a single comp source would work great but I'm trying to build a tool for many team members to use as-needed in the future. So, self-contained solutions such as the Name or hard coded into VBA might be the way to go.
Again thank you!!