

Then click OK, and the words or numbers in the selected cells have been split to individual characters. Click OK, and another prompt box will pop out to tell you to select a cell for locate the result.ĥ. Then press F5 key to run this code, and a prompt box will remind you to select the data range that you want to use, see screenshot:Ĥ. OutRng.Cells(xRow, i).Value = VBA.Mid(xValue, i, 1)ģ. Set OutRng = Application.InputBox("Out put to (single cell):", xTitleId, Type:=8) Set InputRng = Application.InputBox("Range :", xTitleId, InputRng.Address, Type:=8) VBA code: Split word into separate cells Sub SplitStuff()
Word for mac two seperate columns code#
Click Insert > Module, and paste the following code in the Module Window. Hold down the ALT + F11 keys in Excel to open the Microsoft Visual Basic for Applications window.Ģ. If you are interested in VBA code, the following code also can do you a favor.ġ. And then continuing drag the fill handle down to the range that you want to apply this formula, and all the data in column A will be separated on different cells as you like. Then drag the fill handle over to the right cells until displaying blank cells, and the content in cell A1 has been split into separate cells.ģ. In a blank cell next to your data, C1 for instance, please enter this formula =MID($A1, COLUMNS($A$1:A$1), 1), see screenshot:Ģ. With the following simple formula, you can separate the cell contents on different cells quickly and conveniently.ġ. Split word or number into separate cells with Kutools for ExcelĬombine separated letters or numbers into one word or number Split word or number into separate cells with VBA code Split word or number into separate cells with formula
