I have this string in cell A1:
A1 some text, to be, processed
I want to create formulas for B1, C1, D1, etc. where:
B1 some text C1 to be D1 processed E1
I already found the Text to Columns feature, but I need to do this using formulas.
You can use VBA to create a custom function that can be used as a formula. To do this:
Now close the Visual Basic window to go back to Excel.
To use the formula, as per your example, type
You can change the comma to split by other characters.
The only downside to custom formulas is that you will get a warning to enable macros whenever you open the file.
I did this using
In your NewSheet, do as many columns as you think could have commas in your text. If the number is large, you probably should use the VBA solution.
Note that I stuck a comma to the end of your string so that you don't get errors (#value if no comma in string). You can either test for a result greater than the length of the original string or you can use
You can use the text functions Left, Mid and Right. Left lets you extract a number of characters from the left side of the text string. Right does the same thing from the right side of the text string. With Mid, you exclude some number of characters from the left, then tell it to take the next x number of characters.
If you go to the "insert Function" dialog box (click the "fx" next to the formula bar), you'll find these functions under the "Text" category.