I'm trying to do something which I hope will be reasonably straightforward in Microsoft Excel. I'm using 2010.
I have two columns called Username
and Year Group
.
Username
takes the format of something like, 11rennem01
or 10oxbech1
. Year Group
is just a single digit figure, one of 5
/6
/7
/8
.
In a third column, I would like to display the students' shared drives, which take the following format: \\server\student\
IntakeYear
\
Username
`. For example, the aforementioned students' paths will be:
(Year 5) 11rennem01
-> \\server\student\Intake2011\11rennem01
(Year 6) 10oxbech1
-> \\server\student\Intake2010\10oxbech1
(Year 7) 09clarco01
-> \\server\student\Intake2009\09clarco01
(Year 8) 08wilkbe01
-> \\server\student\Intake2008\08wilkbe01
Unfortunately, despite the numbers 11
and 10
at the start of the students' usernames matching up, there's a possibility, with a few students, that the number at the start of their username will be different to their Intake Year. As such, the only reliable value is the Year Group
figure in the second column.
How can I go about writing such an IF statement?
Thanks in advance,