> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thedatacity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reverting downloads to old locations format

> This guide shows you how to use Excel's Power Query to convert your company data from the new two-tab format back to the old single-table format with concatenated location data.

<div data-original-date="2025-09-29" hidden />

### Converting Company Data from New Format to Old Format

What you'll get:

One row per company with all location names combined in a single column, separated by commas.

Time required:

5-10 minutes

#### Overview

Your download now comes in two separate tabs:

* Companies tab: Contains company information (Companynumber, Companyname, etc.)
* Locations tab: Contains location data (Companynumber, Postcode, LAname, LAcode, etc.)

This guide uses Excel's Power Query to combine these into the old single-row format where each company has all its location data in one concatenated column.

#### Steps

1. Prepare your data

* Download the data from the platform and ensure both Companies and Locations tabs exist
* Open a blank Excel file

2. Load data into Power Query

* Go to Data > Get Data > From Other Sources > From Workbook
* Select your Excel file you've just downloaded and choose both tables
* Load them into Power Query Editor by selecting Transform Data (bottom right)

<img src="https://mintcdn.com/thedatacity/M_Lel9tm-ROfsnm1/images/kb/image-png-Jul-15-2025-03-43-20-0848-PM.png?fit=max&auto=format&n=M_Lel9tm-ROfsnm1&q=85&s=d261b64f41430eef43adb8e29f8d75a0" alt="image png Jul 15 2025 03 43 20 0848 PM" width="2404" height="826" data-path="images/kb/image-png-Jul-15-2025-03-43-20-0848-PM.png" />

**2a. Ensure Excel has promoted the headers for you**

* Sometimes Excel will do this for you but you need to promote the headers so we can used named columns.

<img src="https://mintcdn.com/thedatacity/M_Lel9tm-ROfsnm1/images/kb/image-png-Sep-29-2025-08-57-11-7148-AM.png?fit=max&auto=format&n=M_Lel9tm-ROfsnm1&q=85&s=e64e233e1f6932335d1ba6ceb0906a6b" alt="image png Sep 29 2025 08 57 11 7148 AM" width="2588" height="1122" data-path="images/kb/image-png-Sep-29-2025-08-57-11-7148-AM.png" />

**3. Join the tables**

* In Power Query Editor, select the Companies table
* Go to Home > Combine > Merge Queries as New
* Select Locations table as the second table
* Join on Companynumber column from both tables
* Choose Left Outer join type

<img src="https://mintcdn.com/thedatacity/M_Lel9tm-ROfsnm1/images/kb/image-png-Jul-15-2025-03-45-50-6124-PM.png?fit=max&auto=format&n=M_Lel9tm-ROfsnm1&q=85&s=58096d4f3910fb1f420105448dff5b09" alt="image png Jul 15 2025 03 45 50 6124 PM" width="1296" height="1332" data-path="images/kb/image-png-Jul-15-2025-03-45-50-6124-PM.png" />

4. Create concatenated columns

* In the ribbon, click Add Column tab
* Click Custom Column
* New column name: Type "LAname\_Combined"
* Custom column formula: Copy and paste this exactly:

```text theme={null}
Text.Combine([Locations][LAname], ", ")
```

* Click OK

<img src="https://mintcdn.com/thedatacity/M_Lel9tm-ROfsnm1/images/kb/image-png-Aug-26-2025-10-02-58-6848-AM.png?fit=max&auto=format&n=M_Lel9tm-ROfsnm1&q=85&s=9e65dee248e238ee367b61988298c115" alt="image png Aug 26 2025 10 02 58 6848 AM" width="1322" height="924" data-path="images/kb/image-png-Aug-26-2025-10-02-58-6848-AM.png" />

5. Repeat Step 4 as necessary

* For LAcode data, click Add Column > Custom Column
* New column name: Type "LAcode\_Combined"
* Custom column formula:
  ```text theme={null}
  Text.Combine([Locations][LAcode], ", ")
  ```
* Click OK
* For Postcode data, click Add Column > Custom Column
* New column name: Type "Postcode\_Combined"
* Custom column formula:
  ```text theme={null}
  Text.Combine([Locations][Postcode_withspaces], ", ")
  ```
* Click OK
* Repeat for any other location columns you need (Constituencies, ITL regions, etc.)

6. Clean up and load

* Remove intermediate columns
* Close & Load to get your final table
