Pages

11.4.10

Konversi File Text ke Excel

 
Beberapa minggu yang lalu saya baru mendapat kuliah audit. Pada kuliah tersebut dipelajari cara mengubah format data dari *.txt ke *.xls. Menurut sang dosen, hal ini sangat berguna ketika auditoee memberikan data kepada auditor dalam bentuk *.txt, misalnya: jurnal penjualan, jurnal pembelian dsb.
Sebelum mengkonversi ke excel ada baiknya diketahui jenis** file yang dikonversi, yaitu:

1.       Fixed width file
a fixed width text file is a file that has a specific format which allows for the saving of textual information/data in an organized fashion. 
Contoh:
  Name                      State       Telephone 

John Smith               WA          Z18-Y11-4111

Mary Hartford       CA            a19-Z19-4341

Evan Nolan             IL               b19-532-c301

Pada contoh di atas terlihat bahwa jumlah digit pada masing** kolom sudah fix.


2.       Delimited file
File is used for the digital storage of data structured in a table of lists form, where each associated item (member) in a group is in association with others also separated by the commas of its set. Each line in the CSV file corresponds to a row in the table. Within a line, fields are separated by commas, each field belonging to one table column. Since it is a common and simple file format, CSV files are often used for moving tabular data between two different computer programs, for example between a database program and a spreadsheet program.
Pad intinya data tersimpan di mana kolom** dipisahkan pemisah yang disebut delimiter yang dapat berupa tab [tab] koma(,) , titik koma (;), spasi, dan atau tanda lainnya.
Contoh:
1997,Ford,E350,Super, luxurious truck (tanda koma tidak akan muncul ketika file dibuka, pembaca file yang harus menentukan apakah jenis delimiter dari file yang akan dibaca)