我已经尝试过研究这个但我似乎无法找到这个特殊的问题..
我通过Power Query将数据从一个工作簿转移到另一个工作簿。在源工作簿中,一些单元格有#VALUE!错误,我的用户需要在目标工作簿中查看这些错误,以便他们知道存在问题。我没有使用任何"替换错误"查询中的步骤。 Excel显示通用"错误"在查询编辑器的单元格中,但在目标表中,单元格只是空的。有没有办法让Excel不对错误做任何事情,并将其显示为#VALUE!目标工作簿中的错误?
查询代码如下:
let
Source = Excel.Workbook(File.Contents("Q:\03 Master Price Sheets\Update 17.11.7\Material Price Sheet v2, 171208.xlsm"), null, true),
Materials_Table = Source{[Item="Materials",Kind="Table"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(Materials_Table,{{"Price List P/N", type text}, {"Business Works P/N", type text}, {"Bend Type", type text}, {"Wt/Ft", type number}, {"Do not use or delete 1", type any}, {"Do not use or delete 2", type any}, {"Do not use or delete 3", type any}, {"Stock or NonStock", type text}, {"Mat'l Type", type text}, {"Mat'l Cost", type any}, {"Instructions", type text}, {"Do not use or delete 4", type any}, {"Mat'l Color", type text}, {"Do not use or delete 5", type any}, {"Vendor", type any}, {"Do not use or delete 6", type any}, {"Web", Int64.Type}, {"Type", type text}, {"Flange", Int64.Type}, {"Gauge", Int64.Type}, {"Gauge Group", type any}, {"Web to Look Up", type any}, {"Web Group", type any}, {"Flange to Look Up", type any}, {"Labor Times Base Material (Auto-Selected)", type any}, {"Labor Times Base Material (Override)", type any}, {"Material to Look Up", type any}, {"Base Labor from Table", type any}, {"Base Labor (Override)", type any}, {"Base Labor", type any}, {"Extra Person Lookup Key", type text}, {"EP Min Length", Int64.Type}, {"EP Factor", type number}}),
#"Removed Columns" = Table.RemoveColumns(#"Changed Type",{"Do not use or delete 1", "Do not use or delete 2", "Do not use or delete 3", "Do not use or delete 4", "Do not use or delete 5", "Do not use or delete 6", "Web", "Type", "Flange", "Gauge", "Gauge Group", "Web to Look Up", "Web Group", "Flange to Look Up", "Labor Times Base Material (Auto-Selected)", "Labor Times Base Material (Override)", "Material to Look Up", "Base Labor from Table", "Base Labor (Override)", "Extra Person Lookup Key"})
in
#"Removed Columns"