

ListRow = 1: Rem the row in column B that is getting writtenĭo Until Cells(dataRow, 1).Value = "" And Cells(dataRow + 1, 1).Value = ""ĭata = data & "," & Cells(dataRow, 1). Excel Power Query to Split Comma Separated Values into Columns or Rows 2.1. Separate Data into Rows/Columns by Comma Using ‘Text to Columns’ Feature in Excel 1.1.

In other words, youll learn how to make your column headings become row headings, and vice versa. 5 Methods to Split Comma Separated Values into Rows or Columns in Excel 1. Right-click again to launch the context menu.

Activate the destination cell (where you want the row to appear). Click Kutools > Range > Transform Range, see screenshot: 3. Select the column that you want to convert. Right-click on the selection, and from the context menu, select Copy. After installing Kutools for Excel, please do as this: 1. So modified the routine and came up with the following, also I changed the variable names to meaningful names: Sub generatecsv()ĭataRow = 1: Rem the row that it is being read from column A otherwise known as 1 in vb script Learn how to easily transpose columns into rows in Excel. Select the column containing the weekdays. Reason, I had a client send me multiple keywords in list format for their website based on subject matter, needed a way to get these keywords into the webpages easily. example list title 1Īnd combines them of course into multiple rows, 1 per list. I improved the generatecsv() sub to handle an excel sheet that contains multiple lists with blank lines separating both the titles of each list and the lists from their titles.
