MS Excel - Preparing data for migration - Removing blank rows - การเตรียมข้อมูลสำหรับ Migrate - การลบ Row ที่ว่าง
Data preparation for migration can be done through MS Excel and convert to .csv file. This task can be done by team coordinator who is familiar with MS Excel no need to waste time of programmer to create a program to do this task. This example, will show how to remove blank row which you may get when export data from some application.
การเตรียมข้อมูลสำหรับทำ data migration สามารถใช้ MS Excel ช่วย ในการเตรียมแล้วจึง convert ไปเป็น .csv โดยหน้าที่สามารถทำได้โดยบุคลากรในทีมที่สามารถใช้โปรแกรม MS Excel ได้ โดยไม่ต้องเสียเวลาให้โปรแกรมเมอร์มาเขียนโปรแกรมในการเตรียมข้อมูล สำหรับตัวอย่างนี้จะเป็นการลบ Row ว่างที่อาจจะติดมาในตอนที่ export ข้อมูลออกจากระบบงานปัจจุบันที่คุณใช้อยู่
1.Once you get data from your existing application just import into Excel and look through the data to understand how the blank rows stay in your data.
หลังจากได้ข้อมูลจากระบบปัจจุบันและทำการ import เข้ามาใน Excel แล้ว ให้ทำความเข้าใจกับข้อมูลโดยการตรวจสอบดูว่ามี Row ว่างแสดงอยู่ในส่วนใดของข้อมูลบ้าง
2.In this example, blank rows are randomly stay in between rows that contain data. Also each row contain data completely. So it safe to remove the blank rows.
ในตัวอย่างนี้ Row ที่่ว่างจะแทรกอยู่อย่างไม่เป็นรูปแบบกับ Row ที่มีข้อมูล และแต่ละ Row ที่มีข้อมูลจะมีข้อมูลอยู่อย่างสมบูรณ์ รูปแบบนี้สามารถลบ row ที่ว่างได้ โดยไม่กระทบข้อมูล
3.We will start by adding Row ID by creating series of number initiate with a character (this helping in sorting later) on a column before first column of data.
เราจะเริ่มจากสร้าง Row ID โดยให้ขึ้นต้นด้วยตัวอักษรเพื่อให้ง่ายต่อการ sort ภายหลัง โดยเพิ่มใน คอลัมน์แรกก่อนคอลัมน์ที่มีข้อมูล
กรณีเลือก Row แรกเป็น header เมื่อคลิกที่ Sort by จะแสดงรายการข้อมูลใน Row แรก ให้คลิกที่รายการที่ 2 เพื่อ sort ตาม column ที่ 2.
กรณีรวม Row แรกในการ Sort ด้วย เมื่อคลิกที่ Sort by จะแสดงรายชื่อคอลัมน์ (แทนข้อมูลใน row แรก) แล้วให้คลิกที่รายการที่ 2 เพื่อ Sort ตาม column ที่ 2