简体   繁体   English

如果单元格在Excel中匹配,则从范围中获取值

[英]Get value from range if cells match in Excel

Excuse me for the messy title, hope I would explain the problem below clearer. 对不起,我的标题很乱,希望我能在下面更清楚地说明问题。

This is an example what table I do have: https://i.stack.imgur.com/X9JSj.png 这是我拥有的表的一个示例: https : //i.stack.imgur.com/X9JSj.png

This is formula I use: =INDEX($G:$G, MATCH(B$1,$F:$F,0)) 这是我使用的公式: =INDEX($G:$G, MATCH(B$1,$F:$F,0))

The task is: if types id and idnum match, and column name (A, B and C) matches value in type -> put value of the cell from value to the A, B or C column. 任务是:如果类型ididnum匹配,并且列名(A,B和C)与类型中的值匹配->将单元格的value放入A,B或C列。 I tried to search how to do this as well as trying out to do this with =IF and Index, Match, Match, but nothing worked out. 我尝试搜索如何执行此操作以及尝试使用= IF和Index,Match,Match来执行此操作,但没有任何结果。

Any help is very appreciated! 任何帮助都非常感谢!

Try this Formula in B2 cell B2单元格中尝试此公式

=IFERROR(INDEX($G$2:$G$15,MATCH(1,($E$2:$E$15=$A2)*($F$2:$F$15=B$1),0)),"")

After click F2 and Ctrl + Shift + Enter 单击F2并按Ctrl + Shift + Enter

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 excel 表中的单元格值获取单元格范围? - How to get a cells range from cell value in excel sheet? Excel查找一系列单元格中的值 - Excel Lookup a value from a range of cells 从Excel VBA中的一系列单元格中获取列x的单元格 - Get column x's Cells from a Range of Cells in Excel VBA 使用Excel条件格式-想要突出显示与另一个单元格区域中的任何单元格匹配的区域中的单元格 - With Excel Conditional Formatting - Want to Highlight Cells in a range that match any from another range of cells 应用自动筛选后,Excel VBA从可见单元格获取范围值 - Excel VBA get a range value from visible cells after applying autofilter 在Excel中查找具有值的单元格范围 - Finding range of cells with value in Excel 是否有一个 Excel 公式来查找/匹配一系列单元格中的单词 - Is there an Excel formula to find/match words in a range of cells Excel-检查范围内的单元格是否匹配,然后替换单元格 - Excel - Checking if cells in range match and then replace cell Excel - 将数据从一个范围匹配到另一个范围,并从匹配数据右侧的单元格中获取值 - Excel - match data from one range to another and get the value from the cell to the right of the matched data excel - 将范围内的多个单元格与来自其他单元格的文本匹配并返回特定的单元格数据 - excel - match multiple cells in a range with text from other cells and return a particular cell data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM