Hi
I have a little training, from a course I did some time ago, with functions such as LEFT, MID, RIGHT, FIND, IF etc. Nesting I need some practice with but am sure I will get there.
I have my first task in the real world and it is to separate a string into four separate fields (please see image at the bottom).
An example of the string, one of several hundred of them, is COMP10000 Introduction to Computing 2015-16 2nd Semester.
My challenge is to separate it into four fields:
Course code: COMP10000
Year: 2015-16
Course title: Introduction to Computing
Semester: 2nd Semester
The first step to separate the course code was easy and I used the formula =LEFT(G2,FIND(" ",G2)-1) where the full string is in cell G2. I then fill down for several hundred records.
I hope kind folk can hold my hand through the next three fields?
YEAR
The year is in the middle of the string but even if I used MID cannot use FIND to locate the space as there are a number of them?
SEMESTER
My first instinct is to use RIGHT and FIND but there are two spaces not one?
Also in some cases there is a blank with the relevant semester or full year missing (where I would probably treat it as full year).
COURSE TITLE
Probably a combination of MID and FIND and another function?
I would very much appreciate a steer on how best to approach these remaining 3 fields?
Many thanks!
capture20160613162709489.png
Bookmarks