匹配两张纸之间的关键字,然后将值输入到第一个纸上
我有一个主人表,其中包含不同的过程名称。观察结果是可能发生每个变量的不同实例。
第二张纸是一个观察结果,其中每个变量都附有一个值。这些变量中的每个变量都有一个与我上面提到的过程相似的名称,尽管并不精确。
我需要一种将每个名称从第二纸到第一张纸匹配的方法,然后才能使用与第二个名称相关的值,以将其输入其相应的单元格。如下所示。 表1:
观察 | X射线 | MRI |
---|---|---|
1 | 100 | 250 |
2 | x | x |
3 | 200 | 300 |
表2: 观察2:
程序 | 成本 | Na |
---|---|---|
XRay3 | 175 | NAN |
MRI心脏 | 250 | NAN |
同意 | 400 | NAN |
输出:
观察 | XRay | MRI | 同意 |
---|---|---|---|
1 | 100 | 250 | NAN |
2 | 175 | 250 | 400 |
3 | 200 | 300 | NAN |
到目前为止,我已经研究了模糊的匹配,但我不确定如何去关于这个。提前致谢。
I have one master excel sheet that contains different names of procedures. The observations are different instances in which each variable can occur.
The second sheet is one observation in which each variable has a value attached to them. Each one of these variables has a name that is similar to the procedures I mentioned above, though not exact.
I need a way to match each name from the second sheet to the first sheet, and then for it to be able to use the values that are associated with the name in the second sheet to be entered into its corresponding cell. demonstrated below.
Sheet 1:
Observation | xray | MRI |
---|---|---|
1 | 100 | 250 |
2 | x | x |
3 | 200 | 300 |
Sheet 2:
Observation 2:
Procedure | Cost | NA |
---|---|---|
Xray3 | 175 | NaN |
MRI Cardiac | 250 | NaN |
Consent | 400 | NaN |
Output:
Observation | xray | MRI | Consent |
---|---|---|---|
1 | 100 | 250 | NaN |
2 | 175 | 250 | 400 |
3 | 200 | 300 | NaN |
So far I have looked into fuzzy matching but I am not sure how to go about this. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论