How to compare two columns in Excel and copy the corresponding value in the next column

StackOverflow https://stackoverflow.com/questions/22927231

  •  29-06-2023
  •  | 
  •  

Вопрос

I have 3 columns in my Excel list. Column A contains "computer names", column C contains "Computer names" and column D contains "IP addresses". I want to compare data in column A with column C and if a match is found, copy the corresponding value in column D (IP Address) into column B.

Hope it makes sense.

Это было полезно?

Решение

Use VLOOKUP

Example in cell B1:

=VLOOKUP(A1,C1:D4,2, FALSE)

where C1:D4 is the table that contains computer names and their corresponding IP addresses.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top