Excel Power Query:某些单元格中的参数值 [英] Excel Power Query: Parameter value from certain cell
本文介绍了Excel Power Query:某些单元格中的参数值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个功能查询(有效):
I have this power query (it works):
(INGCODE) =>
let
Origine = Web.Page(Web.Contents("https://website/ProductDetails.aspx?id=IT01@@7000@@10@@"&(INGCODE))),
#"Mantenute prime righe" = Table.FirstN(Origine,1),
#"Rimosse altre colonne" = Table.SelectColumns(#"Mantenute prime righe",{"Caption"})
in
#"Rimosse altre colonne"
问题是:
- 我可以对"INGCODE"参数使用单元格值吗?
- 我可以将功率查询的结果放在确定的单元格中吗?
推荐答案
对于1-根据Alexis的评论,您需要首先使用Excel为单元格值"定义一个命名范围.那么语法是:
For 1 - As per Alexis' comment, you need to first define a named range using Excel for your "cell value". Then the syntax is:
Excel.CurrentWorkbook(){[Name=rangeName]}[Content]{0}[Column1]
(其中rangeName是您的命名范围).
(where rangeName is your named range).
对于2-在工作簿查询"窗格中右键单击查询,然后选择加载到...",然后在选择数据应加载到的位置"下选择一个特定的工作表和单元格.
For 2 - Right-click the query in the Workbook Queries pane and choose Load To ... Then under "Select where the data should be loaded to" choose a specific worksheet and cell.
这篇关于Excel Power Query:某些单元格中的参数值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文