This requires too many IFs....
On spectrum we had X=LEFT(Y,Z)....