跳到主要內容

從另一個工作表或工作簿中查找值

如果您知道如何使用VLOOKUP函數在工作表中搜索值,那麼其他工作表或工作簿中的vlookup值對您來說就不是問題。


來自另一個工作表的VLOOKUP值

本節將向您展示如何在Excel中從另一個工作表中查找值。

通用公式

=VLOOKUP(lookup_value,sheet_range,col_index,[range_lookup])

參數

  • Lookup_value (必填):您要搜索的值。 它必須在sheet_range的第一列中。
  • Sheet_range (必需):某個工作表中包含兩個或更多列的值,其中查找值列和結果值列位於其中。
  • Col_index (必需):table_array的特定列號(它是整數),您將從中返回匹配的值。
  • Range_lookup (可選):這是一個邏輯值,它確定此VLOOKUP函數將返回完全匹配還是近似匹配。

點擊了解更多有關 VLOOKUP功能.

在這種情況下,我需要在名為的工作表的B3:C14範圍內查找值 “銷售”, 並在 概要 工作表。

1.在“摘要”工作表中選擇一個空白單元格,將以下公式複製到其中,然後按 Enter 鍵。

=VLOOKUP($B5,Sales!B3:C14,2,0)

筆記:

  • B5 是包含您要搜索的值的單元格引用;
  • 銷售額 是您要從中查找值的工作表名稱;
  • B3:C14 該範圍包含查找值列和結果值列;
  • 2 表示結果值位於範圍B3:C14的第二列上;
  • 0 這意味著VLOOKUP函數將返回完全匹配。 如果找不到精確的匹配值,它將返回#N / A錯誤值。

2.然後拖動 填充手柄 下來獲得所有結果。


來自另一個工作簿的VLOOKUP值

假設有一個wokbook名稱為“ Sales report”,要直接在此工作簿的特定工作表中查找值(即使已關閉),請執行以下操作。

通用公式

=VLOOKUP(lookup_value,[workbook]sheet!range,col_index,[range_lookup])

參數

  • Lookup_value (必填):您要搜索的值。 它必須在sheet_range的第一列中。
  • [workbook]sheet!range (必需):特定工作簿中工作表的單元格範圍,其中包含查找值列和結果值列所在的兩個或更多列。
  • Col_index (必需):table_array的特定列號(它是整數),您將從中返回匹配的值。
  • Range_lookup (可選):這是一個邏輯值,它確定此VLOOKUP函數將返回完全匹配還是近似匹配。

1.選擇一個空白單元格,將以下公式複製到其中,然後按 Enter 鍵。

=VLOOKUP($B5,'[Sales report.xlsx]Sales'!B3:C14,2,0)

注意: 如果找不到完全匹配的值,則VLOOKUP函數將返回#N / A錯誤值。

2.然後向下拖動“填充手柄”以將公式應用於其他單元格以獲取所有結果。 看截圖:


相關功能

VLOOKUP功能
Excel VLOOKUP函數通過在表的第一列上進行匹配來搜索值,並從同一行中的特定列返回相應的值。


相關公式

Vlookup公式–運費計算器
本文提供了詳細的步驟,用於根據Excel中某項指定的重量計算運輸成本。
點擊了解更多...

具有動態工作表名稱的多個工作表中的查找值
在許多情況下,您可能需要跨多個工作表收集數據以進行匯總。 本文為您提供了使用動態工作表名稱輕鬆地在工作表中查找特定值的方法。
點擊了解更多...

Vlookup並在多列中返回匹配的值
通常,應用Vlookup函數只能從一列返回匹配的值。 有時,您可能需要根據條件從多個列中提取匹配的值。 這是您的解決方案。
點擊了解更多...

Vlookup在一個單元格中返回多個值
通常,在應用VLOOKUP函數時,如果存在多個符合條件的值,則只能獲取第一個的結果。 如果要返回所有匹配的結果並將它們全部顯示在一個單元格中,如何實現?
點擊了解更多...

Vlookup並返回匹配值的整個行
通常,使用vlookup函數只能返回同一行中特定列的結果。 本文將向您展示如何根據特定條件返回整行數據。
點擊了解更多...


最佳辦公效率工具


Office Tab - 在 Microsoft Office(包括 Excel)中啟用分頁式閱讀和編輯

  • 一秒鐘即可在數十個打開的文檔之間切換!
  • 每天為您減少數百次鼠標單擊,告別鼠標手。
  • 查看和編輯多個文檔時,將您的工作效率提高 50%。
  • 為 Office(包括 Excel)帶來高效的選項卡,就像 Chrome、Edge 和 Firefox 一樣。
Comments (3)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What does this mean: "Sheet_range (required): A range of cells in a certain worksheet which contains two or more columns where the lookup value column and the result value column locating."?
By "locating", do you mean "are located"?
Would you please rephrase this sentence.

Also, after reading this it is still not clear to me how to do the following:
tell Excel to look in another sheet for a specific pair of values matching two cells in the current sheet, and copy to the current sheet a value of values in another cell.

Specifically, I've got a long list of names on sheet A, and I want to copy all their phone numbers and email addresses from Sheet B, to Sheet A
This comment was minimized by the moderator on the site
What does this mean: "Sheet_range (required): A range of cells in a certain worksheet which contains two or more columns where the lookup value column and the result value column locating."?
By "locating", do you mean "are located"?
Would you please rephrase this sentence.

Also, after reading this it is still not clear to me how to do the following:
tell Excel to look in another sheet for a specific pair of values matching two cells in the current sheet, and copy to the current sheet a value of values in another cell.

Specifically, I've got a long list of names on sheet A, and I want to copy all their phone numbers and email addresses from Sheet B, to Sheet A
This comment was minimized by the moderator on the site
What does this mean: "Sheet_range (required): A range of cells in a certain worksheet which contains two or more columns where the lookup value column and the result value column locating."?By "locating", do you mean "are located"?Would you please rephrase this sentence.
Also, after reading this it is still not clear to me how to do the following:tell Excel to look in another sheet for a specific pair of values matching two cells in the current sheet, and copy to the current sheet a value of values in another cell.
Specifically, I've got a long list of names on sheet A, and I want to copy all their phone numbers and email addresses from Sheet B, to Sheet A
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations