-1

I have 2 sheets in my excel workbook.

Sheet 1 has 3 columns

AccountNumber

City

Postcode

Sheet 2 has one coumn only namely AccountNumber.

I would like to update sheet 2 with city and postcode from sheet1, where the AccountNumber in both sheets match.

Is there a simple way of doing it without VBA?

Thanks

Suzy
  • 103
  • 1
  • 9

1 Answers1

2

VLOOKUP is what you are looking for:

https://support.office.com/en-us/article/vlookup-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1

The basic functionality is that you have a search parameter, a matrix to search in and a result row

=VLOOKUP(SEARCHPARAMETER;SEARCH_MATRIX;ROW_TO_RETURN;EXACT_MATCH_BOOLEAN)

There are plenty of examples around the web

tomichel
  • 376
  • 1
  • 4
  • 9
  • I prefer `INDEX`/`MATCH` (see [this question](https://stackoverflow.com/questions/48348889/excel-vlookup-vs-index-match-which-is-better)) but otherwise agree with your answer. +1 – ImaginaryHuman072889 Feb 09 '18 at 13:06