excel 刪除空白列 一次刪除多列 刪除多於空白列

Step 1 新增一欄用來判斷是否刪除整列資料,主要資料儲存格為「員工姓名」以及「生日」,因此只要其中一個儲存格資料為空白,即視為無效資料,因此需刪除資料

Step 2 使用IF函數、OR函數以及ISBLANK函數,輸入完整公式「=IF(OR(ISBLANK(主要資料儲存格),ISBLANK(主要資料儲存格))=TURE,””,FALSE)」
- IF函數:公式「=IF(判斷式,如果判斷為TRUE則顯示的值,如判斷為FALSE則顯示的值)」
- OR函數:公式「=OR(判斷式1,判斷式2,…)」,其中一個判斷式為TRUE則會顯示TRUE,所有判斷式為FALSE則顯示FALSE
- ISBLANK函數:公式「=ISBLANK(儲存格)」,判斷儲存格是否為空白

Step 3 將「判斷是否為空白」欄位選取,在功能列「常用」中編輯選擇「排序與篩選」內的「篩選」

Step 4 使用篩選,將「空白」儲存格篩選出來

Step 5 將儲存格選取後,可使用快速鍵「Ctrl+Shift+↓」,在功能列「常用」中儲存格選擇「刪除」內的「刪除工作表列」,最後將篩選恢復這樣就完成囉!
【教學】Excel 如何自訂刪除空白列?學會如何刪除無效資料!