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
  •  | 
  •  

Pergunta

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.

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top