Excel find word in matrix and return value of another row

H S 216 Reputation points
2020-10-17T13:50:56.677+00:00

Hello!
I have a problem with an Excel formula.

I have a column of text. Each line should be checked if it contains a word from a matrix. If the word was found from the matrix, the value right of the found word should be inserted.

33024-2020-10-17-15-47-32-window.png

A2:Axxx is the Text.
B2:Bxxx are the returned value of Matrix

Matrix D3:E5

  • First Column: Pattern
  • Second Column: returned value

How can I do this?

rg
Hansi

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. H S 216 Reputation points
    2020-10-18T14:13:28.29+00:00

    I have found the solution:

    =VERWEIS(2;1/SUCHEN($D$3:$D$5;A2);$E$3:$E$5)


1 additional answer

Sort by: Most helpful
  1. Ashish Mathur 101K Reputation points Volunteer Moderator
    2025-07-19T23:44:31.7+00:00

    Hi,

    In cell B2, enter this formula

    =XLOOKUP(TRUE,REGEXTEST(A2,$D$2:$D$4,1),$E$2:$E$4)

    Hope this helps.

    User's image

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.