I have a table with information in the following manner.
<colgroup><col><col><col></colgroup><tbody>
</tbody>
I want to assign numeric code to the cities in this manner.
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
What formula should I use to create this number code. Please help.
Thanks in advance.
Continent | Country | City |
Asia | China | Beijing |
Asia | China | Tianjin |
Asia | India | Bengaluru |
Asia | India | Mumbai |
Asia | Thailand | Bangkok |
Europe | France | Lyon |
Europe | France | Paris |
Europe | Germany | Berlin |
Europe | Germany | Munich |
Europe | UK | London |
Europe | UK | Manchester |
North America | Canada | Montreal |
North America | Canada | Toronto |
North America | Mexico | Guadalajara |
North America | Mexico | Mexico City |
North America | USA | New York |
North America | USA | Washington |
<colgroup><col><col><col></colgroup><tbody>
</tbody>
I want to assign numeric code to the cities in this manner.
Continent | Country | City | Code |
Asia | China | Beijing | 01-01-001 |
Asia | China | Tianjin | 01-01-002 |
Asia | India | Bengaluru | 01-02-001 |
Asia | India | Mumbai | 01-02-002 |
Asia | Thailand | Bangkok | 01-03-001 |
Europe | France | Lyon | 02-01-001 |
Europe | France | Paris | 02-01-002 |
Europe | Germany | Berlin | 02-02-001 |
Europe | Germany | Munich | 02-02-002 |
Europe | UK | London | 02-03-001 |
Europe | UK | Manchester | 02-03-002 |
North America | Canada | Montreal | 03-01-001 |
North America | Canada | Toronto | 03-01-002 |
North America | Mexico | Guadalajara | 03-02-001 |
North America | Mexico | Mexico City | 03-02-002 |
North America | USA | New York | 03-03-001 |
North America | USA | Washington | 03-03-002 |
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
What formula should I use to create this number code. Please help.
Thanks in advance.