[英]How to check if value exists in other sheet, then output value from another cell in the row
I am completely stumped here and don't know the proper spreadsheet terminology. 我在这里完全迷住了,不知道正确的电子表格术语。
So I have one sheet which has the following three columns 所以我有一张纸,其中有以下三列
Now the post ID refers to the ID of the post the comment was created on. 现在,帖子ID指的是创建评论的帖子的ID。
I have a second sheet (in the same workbook) that has the following columns: 我有第二个工作表(在同一工作簿中),该工作表具有以下各列:
How can I run a formula that makes Excel replace the values in 'Comment Post ID' with the correlating titles? 如何运行公式,使Excel用相关标题替换“注释帖子ID”中的值?
Thanks! 谢谢!
Say the Comment items are on Sheet 1 columns A:C
and the Post items are on Sheet 2 columns A:B
, in order, with headers. 说注释项在工作
Sheet 1 columns A:C
,而发布项在工作Sheet 2 columns A:B
按顺序排列,并带有标题。
In Sheet 1 column D Row 2
use 在工作
Sheet 1 column D Row 2
使用
=VLOOKUP(B2,Sheet2!A:B,2,FALSE)
You can drag that down as far as your data goes and it will lookup the Comment Post ID from Sheet 1 column B
to find the matching title in Sheet 2 Column B
. 您可以将其向下拖动到数据为止,它将在工作
Sheet 1 column B
查找注释帖子ID,以在工作Sheet 2 Column B
找到匹配的标题。
If you really want to replace your Comment Post ID column with the titles then just copy and paste the values of your new column D 如果您确实要用标题替换“评论文章ID”列,则只需复制并粘贴新列D的值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.