

The 'FALSE' after the last comma indicates that we want to find an exact match, and not just a close match. In this case we will lookup the value A1 (which is DFID's name for an airport) in the table array columns A (column A is our airport name, column B is the airport city, column C is the airport country and column D is the IATA code) through D in the other sheet in our workbook called Global Airports, and we want the three-letter IATA code, which is found in column 4. Its companion function is HLOOKUP, which will search horizontally and look up a number in a given row. The VLOOKUP (or vertical lookup) function basically takes a value that you want to lookup, searches within a particular table 'array' (a table of data) and returns the value that is in whatever column of the array you want. A helpful box that explains the formula might popup: In cell B1, insert an '=' followed by VLOOKUP.

It's not necessary to work from this spreadsheet, but I have to keep things contained within single workbooks. Open up the Global Airports data, create a new sheet and copy and paste our list of 303 airport names. Step 2: Open global airports data, paste the list of locations and create VLOOKUP fields It notes that there are only 303 unique items after de-duplication.

I'm going to select the column and then sort it from A-Z, just to confirm there are a lot of duplicates (this step is optional).Īnd then, also in the Data tab, I will select the 'Remove Duplicates' button, and then approve it to de-duplicate column A only.

I'm just going to start by opening a new sheet in the workbook and copying both columns D and E ('Departure Airport' and 'Destination Airport') into a single column, one below the other, on the same sheet. In order to merge our data, the first thing we need to find is that list of locations. There are thousands of flights by DFID staff in 2011, but only about 300 or so departure or destination locations. Step 1: Get a list of unique departure and destination names using the 'de-duplicate' feature In the Get & Transform Data group, click on the ‘Get Data’ option. Here are the steps to combine multiple worksheets with Excel Tables using Power Query: Go to the Data tab. Type = and select the first cell you want to combine. Combine data with the Ampersand symbol (&) Select the cell where you want to put the combined data. Learn different ways you can combine values or sum numbers that refer to the same record in Excel.Feel free to download Combine Rows Wizard. When I was at university, I was working in the Office for Institutional Research.
