跳到主要内容

 如何从另一个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。 然后按 输入 获得第一个结果的关键,请参见屏幕截图:

3。 然后选择公式单元格,然后将填充手柄向下拖动到要提取匹配值的单元格,请参见屏幕截图:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 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