[英]How to replace an excel file column according to the column of another file
country.csv --> I have an excel file that contains countries and their codes as well as region city.csv --> Another excel file contains cities and countries
文件的擴展名沒有問題,可以是*.csv或*.xls
我打算將city.csv
COUNTRY 替換為country.csv
COUNTRY_CODE
city.csv文件的樣本數據如下:
City_Code City Airport Country
AAA Anaa Anaa French Polynesia
AAB Arrabury Arrabury Australia
AAC Arish El Arish Egypt
AAD Ad-Dabbah Ad-Dabbah Sudan
AAE Annaba Les Salines Algeria
AAF Apalachicola Municipal USA
AAG Arapoti Arapoti Brazil
country.csv 樣本數據如下:
Country Country_Code Region_Code
Afghanistan AF AS
Albania AL EU
Algeria DZ AF
American Samoa AS OC
Andorra AD EU
我正在尋找與 excel/csv 相關或使用 Java 的任何解決方案
此致
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.