Good morning everyone.
I will try to be exhaustive in explaining this Excel drawback.
I have created an Excel model that through PowerQuery appends and modifies about 150 .txt files contained in a folder.
I don't think the details of the files are imported but they are made of 4 columns with thousands of rows with
state + country + zipcode + number of inhabitants
After appending the files I generate a table with as many rows as there are files and 3 columns of
state + country + zipcode attributes.
Once I have made my changes in PowerQuery I load the generated table in the Excel sheet and to the right of it I build a model with calculated columns that will be part of the same table element.
Many columns are VLOOKUP or SUMIF on the zipcode column--> the key.
Up to here everything is ok.
The problem is that often when I update the model and add txt files or replace files in the folder, the columns on the right of the table generated by the query ((therefore from the 4th column onwards)) generate an error. The error is dictated by the fact that the internal reference of the VLOOKUP or SUMIF formulas is deleted by displaying #REF! .. even if the column to which they refer named ZIPCODE always exists without any modification.
I can't solve this problem .. do you have any ideas?
Bookmarks