Others

How to Categorize Locations by Province and Assign Codes in WPS Office Spreadsheets

Amos GikundaAmos Gikunda Nov 13, 2026 868 views

Question details

The user needs to organize a list of national parks and landmarks by adding a Province column, filtering by province, and assigning unique province-based visitor codes such as EC001–EC100.

How to Categorize Locations by Province and Assign Codes in WPS Office Spreadsheets
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
The user is managing a location list of national parks and landmarks and needs to group them by province for filtered code assignment.
Observed behavior
The list is not yet organized by province, and visitor codes are not assigned by province. The goal is to filter locations by province and generate codes such as EC001–EC100.
Before you start

Confirm your location list includes a column for site names and enough empty columns for Province and Visitor Code. If you plan to use SharePoint later, keep the Province column name consistent between the spreadsheet and the SharePoint list.

Solution 1Recommended

Add a Province Column and Assign Visitor Codes Using AutoFilter

Use this method when you need to organize a location list by province and create unique province-based visitor codes without restructuring the whole workbook.

This manual method is ideal for small to medium location lists. It uses a dedicated Province column and AutoFilter so you can work with only the selected province at a time, reducing the chance of assigning a code to the wrong row.

1
Open the location list

In WPS Office Spreadsheets, click Menu > Open and select the workbook that contains the national parks and landmarks list.

2
Insert a Province column

Right-click the column header next to the location names, choose Insert, and type Province in the new header cell.

3
Enter the province for each location

In the Province column, type the correct province for each location, such as Eastern Cape. Use copy and paste or the fill handle for repeated province names.

4
Filter by province

Select the data range, go to the Home tab, click Filter, then click the Province filter arrow and choose the desired province, such as Eastern Cape.

5
Assign province-based visitor codes

In the visitor code column, enter EC001, EC002, EC003, and so on. You can type EC001 and drag the fill handle down to continue the series through EC100.

Add a Province Column and Assign Visitor Codes Using AutoFilter
Repeat for each province: Clear or change the filter after finishing one province before filtering the next province, so hidden rows are not accidentally assigned the wrong code.
WPS Office Spreadsheets

Use WPS Office Spreadsheets to Categorize Locations by Province and Assign Visitor Codes

Open your Excel-compatible worksheet in WPS Office Spreadsheets, add a Province column, use AutoFilter to isolate each province, and fill province-based visitor codes without paying for Microsoft Excel.

  1. 1. Download and install WPS Office: Click Download WPS Office Free, install the application, and launch WPS Office Spreadsheets.
  2. 2. Open your Excel workbook: In WPS Office Spreadsheets, click Menu > Open and select the location list file you need to organize.
  3. 3. Add and fill the Province column: Right-click a column header, choose Insert, type Province, and enter the correct province for each location.
  4. 4. Filter and assign visitor codes: Select the data range, click Filter on the Home tab, choose a province from the Province filter arrow, and enter EC001 through EC100 in the visitor code column.
Filter location lists by province and assign visitor codes in a familiar spreadsheet layout.Open, edit, and save .xlsx Excel files with full Microsoft Office format compatibility.Use AutoFilter and fill series to speed up code entry for large location lists.Free to download and lightweight, with an Office-like ribbon interface.Move between WPS Office and Microsoft Excel without losing Province filters or visitor codes.
microsoft office alternative - wps office

Frequently Asked Questions

Can I automatically assign province-based codes instead of typing them manually?

Yes. Type the first code such as EC001, then drag the fill handle down to create EC002, EC003, and so on. For more control, you can use a formula like ="EC"&TEXT(ROW()-1,"000") after filtering, but copy and paste the results as values before removing the filter.

How do I repeat the process for each province without mixing the codes?

Clear or change the Province filter after finishing one province, then select the next province from the filter arrow and fill the next code series. Always work with one province visible at a time to avoid assigning codes to hidden rows.

Does this method work when the file is opened in Microsoft Excel later?

Yes. WPS Office Spreadsheets saves .xlsx files that Microsoft Excel can open. The Province column, filters, and visitor codes remain intact when you switch between WPS Office and Excel.

Can I use this approach in SharePoint instead of Excel?

Yes. Add a Province column to the SharePoint list, apply a list-view filter on Province, and enter the visitor codes in the visible items. Repeat the filter process for each province.

What is the quickest way to enter the same province for many locations?

Type the province in the first cell, then use the fill handle or copy the cell and paste it into the remaining cells. You can also use AutoFill to quickly fill repeated province names.