![](/img/trans.png)
[英]Find value in one column and return value of a specified cell in the row found in another column
[英]I want to find a value from one cell, and if found print the contents of another cell in the same Row
假設 Cell L:23 包含我搜索的某個值。 如果找到該值,我希望它在我選擇的單元格中打印水平單元格的內容,比如 D:23。
這怎么可能實現呢?
在單元格D23中,我將使用公式: =IF(ISERROR(SEARCH("search_value", L23)),"Not Found",L23)
簡而言之,這意味着如果在單元格 L23 中找到 substring "search_value",則打印L23中的內容; 否則打印“未找到”。
總的來說,它是說如果SEARCH()
查詢找到了一個匹配項並且沒有返回錯誤,它所包含的ISERROR()
function 將返回 false,因此它將打印L23 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.