I want to move Data presided by a space to a new column. So for an example if I had the below image attached:
So the image below what I am looking for is Data 1 to remain in column A, Item 1 to be moved to column B as this has one space and Sub 1 to be moved to column c as this has two spaces and so on.
Solved! Go to Solution.
The formula for B would be:
if left([A],1) = " " then [A] else null() endif
The formula for C would be:
if left([A],2) = " " then [A] else null() endif
BUT ... it looks like you're trying to pivot a hierarchy and the above will leave you with null cells in each column as well. Is that what you're after or do you want all the values on a single row ?
And how many rows do you have in your real source file ?
Perfect thanks a million for your help