Originally posted by Locutus
I deliberately avoided that because I considered it ugly -- if it wasn't for that little oversight this is a far more elegant solution IMO. Now I have to revise that of course.
If I'd start from scratch (not gonna fix it now) I guess I could still maintain it by having separate hidden columns that store the number of digits of the result and that default to 1, but the elegance is rapidly fading there...
I deliberately avoided that because I considered it ugly -- if it wasn't for that little oversight this is a far more elegant solution IMO. Now I have to revise that of course.
If I'd start from scratch (not gonna fix it now) I guess I could still maintain it by having separate hidden columns that store the number of digits of the result and that default to 1, but the elegance is rapidly fading there...
Code:
=IF(NOT(ISBLANK(F2)), IF(LEFT(F2,SEARCH("-",F2)-1) < MID(F2,SEARCH("-",F2)+1,LEN(F2)-SEARCH("-",F2)),"loss", IF(LEFT(F2,SEARCH("-",F2)-1) > MID(F2,SEARCH("-",F2)+1,LEN(F2)-SEARCH("-",F2)),"win","tie")),"")
Works fine with the current sheet as-is.
Comment