Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

建立索引欄以顯示查詢中的列數。 當您依據列位置或範圍或列進行篩選時,此功能特別有用。 索引欄可協助您確認結果。 載入索引欄時,也會將索引欄新增到 Excel 工作表中。   

您的瀏覽器不支援影片。 請安裝 Microsoft Silverlight,Adobe Flash Player,或 Internet Explorer 9。

程序

  1. 若要開啟查詢,請找出先前從Power Query 編輯器載入的查詢,選取資料中的儲存格,然後選取[查詢>編輯]。 如需詳細資訊,請參閱在 Excel (Power Query) 中建立、載入或編輯查詢

  2. 選取 [新增欄 > 索引資料行]。 預設行為是從 0 開始編號第一列。 或:

    • 如果您選取箭號並選取 [從 1],您可以從 1 開始編號列。

    • 如果您選取箭號並選取 [ 自訂],您可以輸入 [起始索引 ] 和 [ 遞增 ] 來指定不同的起始編號,以及為每一列編號的方式。 例如,如果您輸入數位 2 和 2,則列的編號為 2、4、6 等。

結果

一個名為 [索引] 的資料行會新增至查詢的結尾。 如有需要,您可以將新欄拖放到不同的位置。 您也可以重新命名欄。 如需詳細資訊,請參閱重新命名欄。

另請參閱

Excel 說明Power Query

新增索引欄 (docs.com)

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×