Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
234 views
in Technique[技术] by (71.8m points)

excel formula - Can you match or search with cell matching part of another?

I'm trying to create a formula in Excel where I can use an Index / Match formula where I'm searching for only part of one cell.

For example:

Sheet 1

Column A --> Full Name

Column B --> Removed status

Col A Col B Col C Col D Col E
1 Col D + Col E Removed status agent # Agent F Name Agent L Name
2
question from:https://stackoverflow.com/questions/65907865/can-you-match-or-search-with-cell-matching-part-of-another

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you want to search for part of one cell, you can use find formula which search for given text within cell value find(text,withintext) and it return index that the text start with and error if not.

And if you need your process to be work line by line, the final formula ( for row2 of sheet2 column A ) would look like this:

=IF(AND(NOT(ISERROR(FIND(Sheet1!A2,Sheet2!D2))),Sheet1!A2<>""),Sheet1!A2,"")

if row2 of column A of sheet1 is not empty and is found (no error returned);the value of sheet1 column A returned otherwise empty will returned.

Hope that was useful.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...