-2

Let's say that i have an Excel file with 3 columns and I would like that if the first two columns contains a specific word, the macro show me the value of the cell in the third column that is on the same row of the first two columns. The values of the first two columns will always be on the same rows and the first two rows cannot contain the same words.

Maybe it can work with an Excel function like an If but i struggle to make it work. If anyone has some suggestion it will be very helpful.

Thanks :)

flatbed67
  • 1
  • 1

1 Answers1

0

You can try the InStr() function combined with an AND statement and loop through all rows.

Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
Tepico
  • 13
  • 3
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Jeremy Caney Sep 22 '22 at 01:04