Excel 公式
阿新 • • 發佈:2019-01-06
1. 從括號中取英文名字
Country | City | Master ID | Hotel Name | Hotel Name EN |
Indonesia | Tentena | 691823 | UE大土別墅(Ue datu Cottages) | Ue datu Cottages |
Hotel Name EN = SUBSTITUTE(TRIM(MID(D2,FIND("(",D2)+1,LEN(D2))),")","")
2. 取出中文名字
Hotel Name Zh = TRIM(MID(B2,1,FIND("(",B2)-1))
3. 統計 冒號 :出現次數
001:LHO5:16258:S16003:93846:194424 |
=LEN(A1)-LEN(SUBSTITUTE(A1,":",""))
4. 得到 ItemCode
Destination Property 裡面的 code有的有空格有的沒有空格,Destination Hotel Code 同樣的
Destination City Code | Destination Property | Destination Hotel Code | ItemCode |
AAH | A&O Aachen Hauptbahnhof - AAH AOA | AAH AOA | AOA |
AAH | Ibis Styles Aachen City - AAHMER | AAHMER | MER |
AAH | Leonardo Hotel Aachen - AAHHOL | AAHHOL | HOL |
AAH | Mercure Hotel Aachen Europapla - AAH MER4 | AAH MER4 | MER4 |
ItemCode
=TRIM(MID(D2,LEN(B2)+1,8))
8 為虛長度,能夠覆蓋剩餘的長度部分