跳到主要內容

 如何從另一個Google工作表中查找匹配值?

假設您有兩個Google工作表文件,現在,您需要從另一個文件中查找一個文件中的匹配值,您有什麼好的解決方案嗎?

Vlookup匹配另一個帶有公式的谷歌表的值


Vlookup匹配另一個帶有公式的谷歌表的值

以下公式可以幫助您基於一個鍵列提取匹配值,請按照以下步驟操作:

1。 輸入以下公式: =IFERROR(vlookup(A2,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1Plv5B3v3VfPtdWSJ4zFM6DKPY0MhcCxiYS0vYrxORHE/edit#gid=543140280","my data!A2:B12"),2,false),) 放入要在其中查找匹配值的空白單元格。

備註:在以上公式中:

  • A2 是要查找其匹配值的單元格;
  • https://docs.google.com/spreadsheets/d/1Plv5B3v3VfPtdWSJ4zFM6DKPY0MhcCxiYS0vYrxORHE/edit#gid=543140280 是您要從中查找的文件地址;
  • 我的數據!A2:B12:是您要搜索的工作表名稱和單元格範圍;
  • 2:表示您返回匹配值的列號。

2。 然後按 Enter 獲得第一個結果的關鍵,請參見屏幕截圖:

3。 然後選擇公式單元格,並將填充手柄向下拖動到您要根據需要提取匹配值的單元格,請參見屏幕截圖:

最佳辦公生產力工具

熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

kte選項卡201905


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Importrange is working but there is an error "Did not find value " " in vlookup evaluation. I done everything but this error is being persist.
This comment was minimized by the moderator on the site
Hi,

As I look at the above examples in vlookup of two google sheets, I haven't seen the same as what I want my google sheet to be happen.

I have a "Form Responses", the most important for this sheet is the Mem_ID, Month and Amount.

In my other sheet "Sinking Fund 2023", in Members Contribution, I am creating the formula under "Jan1st, Jan2nd, etc." and to be looked up from Form Responses.

If MemID_2022-0001 has a response for Jan1st, the amount should be added in Jan1st column and if it is Jan2nd this should be automatic added in Sinking Fund 2023 google sheet.

Any one knows how to do the formula. This also needs the importrange function since we are using 2 google sheets.

Below are the links of my google sheet.

Deposit and Payments
https://docs.google.com/spreadsheets/d/124atlHALikF_sUt7JhV7WvpZwH7MokTDgdWckip_vPE/edit#gid=1642645643

Sinking Fund 2023
https://docs.google.com/spreadsheets/d/1L6XoVKF6VlwV6Ia7cDj4Ta5cz3nXDuhjoSi0Nwjhy5E/edit#gid=1548046258

Thanks in advance
This comment was minimized by the moderator on the site
Hello everyone,
Can anyone help me how pull date from another sheets using sheet name in cell reference ?

I have day wise data, sheet name are saved as dates from 1st - 31st Ex.01-05-2021

30 days sheets were there so if i want to lookup a value from any sheet am ending formula changing dates! to get values from sheets according to dates


Will that possible? can anyone help me please how to use sheet name in cell reference apply VLOOKUP IMPORTRANGE formula for another sheet


Thanks in advance
This comment was minimized by the moderator on the site
Hi, I tried using the formulae, but my values are returned blank. I do have access to the files as I created two mock sheets to test my formulae.
This comment was minimized by the moderator on the site
Hi, I fill in the same formulae, but my value is returned Blank?
This comment was minimized by the moderator on the site
Esto es lo que necesito, pero entre tabs de un mismo documento.
This comment was minimized by the moderator on the site
Thanks for this! However, this is only working on about half of my items. I have copied the text exactly as it appears and made sure the format type is the same as well. About half of my data is being found, while the other half is empty (due to the iferror formula). has anyone else found this or have a solution?
This comment was minimized by the moderator on the site
You'll need to protect the range from changing on drag on the importrange.

=IFERROR(vlookup(A2,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1Plv5B3v3VfPtdWSJ4zFM6DKPY0MhcCxiYS0vYrxORHE/edit#gid=543140280","my data!$A$2:$B$12"),2,false),)

without that, as you drag down the formula it will automaticallyl adjust the range. The second-row cell will be A3:B13 next A4:B14 removing possible matching values from your range. You don't really need the $ in front of the column but I leave it in to freeze the exact column in case I move it around.
This comment was minimized by the moderator on the site
Update for this answer, in my case the syntax should use semicolon instead of comma for working
This comment was minimized by the moderator on the site
Can someone help please. I am getting #N/A as a result. I have even tried to put in the importrange formula in a blank cell but still no luck. I have also tried using the LINK SHARE url instead of the actual URL.


Thanks
This comment was minimized by the moderator on the site
Not working please help.
getting blank cell as result.
This comment was minimized by the moderator on the site
Have you granted access for "importrange" part? If not, you need to put formula "=importrange("link, range") in a blank cell first. Then you will have a pop-up window asking you to grant the access. Now, the full formula should work.
I had exactly the same problem before and found this solution on another website. Hope it works. Good luck.
This comment was minimized by the moderator on the site
Worked now, thanks
This comment was minimized by the moderator on the site
After putting above formula i am getting value as blank and later "You don't have permissions to access that sheet".
- how do i resolve this?
This comment was minimized by the moderator on the site
Thank you for the fix!
This comment was minimized by the moderator on the site
Had the same problem and this solution worked for me too - super, thanks!!
This comment was minimized by the moderator on the site
Thank you so much. It worked for me too!
This comment was minimized by the moderator on the site
Wow, very nice of you to share the solution here... Thanx a lot
This comment was minimized by the moderator on the site
This fixed it for me. Thank you so much! I was tinkering for hours.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations