python:exelprocess
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
python:exelprocess [2020/11/07 12:21] – [Function Vlookup and Hlookup] admin | python:exelprocess [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Function in Exel ===== | ===== Function in Exel ===== | ||
Trước khi xử lý các hàm tìm kiếm Vlookup and Hlookup, If trong exel cần phải format dữ liệu và sort trước -> Lúc đó hàm xử lý mới chạy đúng | Trước khi xử lý các hàm tìm kiếm Vlookup and Hlookup, If trong exel cần phải format dữ liệu và sort trước -> Lúc đó hàm xử lý mới chạy đúng | ||
+ | VLOOKUP($B2, | ||
===== Install ===== | ===== Install ===== | ||
* Install on windows:< | * Install on windows:< | ||
Line 121: | Line 122: | ||
parsexls(constantsfile) | parsexls(constantsfile) | ||
</ | </ | ||
+ | ==== Error Parse UTF-8 file ==== | ||
+ | < | ||
+ | UnicodeDecodeError: | ||
+ | </ | ||
+ | You can debug for information:< | ||
+ | xlsfile = xlrd.open_workbook(filename, | ||
+ | </ | ||
+ | BOF: op=0x0809 vers=0x0600 stream=0x0005 buildid=14420 buildyr=1997 -> BIFF80 | ||
+ | CODEPAGE: codepage 1200 -> encoding ' | ||
+ | DATEMODE: datemode 0 | ||
+ | </ | ||
+ | |||
+ | **Fix**: Lỗi do file exel, mở lại file exel và lưu lại sẽ hết lỗi | ||
===== Using xlwt ===== | ===== Using xlwt ===== |
python/exelprocess.1604751660.txt.gz · Last modified: 2022/10/29 16:15 (external edit)