C
Craig Roberts
Hi all
This is a two-parter.
1) First, can I use the FIND forumla to look for a carriage return or
newline character in a single cell of multi-lined text imported from another
program?
Cell B1 would contain following formula: =LEFT(A1,FIND(<CR>, A1)), where CR
is carriage return character.
2) I often analyse filepaths and need to calculate their constituent parts
of folders and filename, e.g. in "/Macintosh HD/Users/Documents/Folder
A/Folder B/Folder C/..../filename" I might want to know Folder A and Folder
B, and the filename.
For this, I would use the formula in part 1 above to determine position of
"/" and then in cell C1 would then put formula: =RIGHT(A1,LEN(A1)-FIND(<CR>,
A1)), to calculate the remaining path.
Then I would calculate the next folder and the right hand side of path after
that...and so on.
This manual recursion is long-winded so I was wondering if there an easier
way to do this, perhaps with lists?
Regards
Craig Roberts.
This is a two-parter.
1) First, can I use the FIND forumla to look for a carriage return or
newline character in a single cell of multi-lined text imported from another
program?
Cell B1 would contain following formula: =LEFT(A1,FIND(<CR>, A1)), where CR
is carriage return character.
2) I often analyse filepaths and need to calculate their constituent parts
of folders and filename, e.g. in "/Macintosh HD/Users/Documents/Folder
A/Folder B/Folder C/..../filename" I might want to know Folder A and Folder
B, and the filename.
For this, I would use the formula in part 1 above to determine position of
"/" and then in cell C1 would then put formula: =RIGHT(A1,LEN(A1)-FIND(<CR>,
A1)), to calculate the remaining path.
Then I would calculate the next folder and the right hand side of path after
that...and so on.
This manual recursion is long-winded so I was wondering if there an easier
way to do this, perhaps with lists?
Regards
Craig Roberts.