問題已解決
請問老師怎樣批量把一行里面的一大段內容分行每行還是在它自己的行里面?



同學你好
光標定位到數(shù)據(jù)源區(qū)域中任意單元格,數(shù)據(jù)菜單——獲取或轉換數(shù)據(jù)——自表格或區(qū)域,Excel自動把數(shù)據(jù)源轉換為表格,并啟動PQ,在PQ中先會自動對數(shù)據(jù)源根據(jù)數(shù)據(jù)特性自動轉換數(shù)據(jù)類型,如編號為文本,會自動轉換為數(shù)字,所以為了保留原格式,要刪除這一個自動完成的步驟。然后在轉換菜單中選擇“值替換”把右括號替換為一個特定的符號+右括號(如把“)”替換為“#)”),原因是下面的步驟要利用右括號做分隔來分隔數(shù)據(jù)(相當于Excel工作表中的分列),右括號就消失了,先利用替換在右括號前加上一個特殊的符號,最后把這個特殊的符號替換回右括號。做好替換的準備后,就到最關鍵的一步,也是最精彩的一步,拆分列(在轉換菜單中),分隔符選擇自定義,并輸入右括號(注意中英文差別,要與數(shù)據(jù)源中的一致),點開“高級選項”,選擇拆分為“行”,(這在Excel工作表的分列中是沒有的——而PQ中直接可直接拆分為行?。?。拆分后,每個編號會多出一個空行(最后一個右括號后沒數(shù)據(jù)),在編號的標題中篩選(與工作表的自動篩選一樣),去掉“空白”,就空白數(shù)據(jù)行去掉了。最后把特定的符號替換回右括號,就得到需要的樣子。把PQ處理后數(shù)據(jù)上載回工作表——文件菜單——關閉并上載至,選擇現(xiàn)有工作表或新的工作表,并選擇目標數(shù)據(jù)起始位置。確定后就得到了轉換的結果。
2023 03/09 16:21

84784978 

2023 03/09 16:30
老師我看不懂

84784978 

2023 03/09 16:30
我要這種效果的

84784978 

2023 03/09 16:32
不是,沒做好

84784978 

2023 03/09 16:32
這種效果的

樸老師 

2023 03/09 16:40
同學你好
你復制這個過去然后手動改

84784978 

2023 03/09 16:50
手動改那么多,改到什么時候?

樸老師 

2023 03/09 16:57
同學你好
1.
點擊單元格 進入表格后,點擊要分行的單元格。
2.
設置單元格格式 在字體的格內,單擊鼠標右鍵,就會出現(xiàn)“設置單元格格式”的字樣。
3.
點擊對齊 在設置單元格格式界面,點擊對齊

84784978 

2023 03/09 17:12
嗯嗯好的

樸老師 

2023 03/09 17:18
同學你好
滿意請給五星好評,謝謝
