S
Steve Garman
I'm working with someone else's worksheet which is designed to be
pretty, not functional and I can't add helper columns (not even hidden
ones) as I'm not supposed to be messing with it.
The intention is that in Column B to H, an employee's hours for the day
should be entered. Optionally, this can be preceded by an indicator and
a slash e.g. E/9.5
The user is then supposed to *type* the total hours for the week into
column J ... That's annoying, to say the least.
If it wasn't for the optional indicator, I'd just put "=SUM(A2:G2)" into
I2 and copy it down.
Instead, I have a working formula which I suspect could be greatly
simplified. Can anyone give me an alternative that's a sensible length?
=IF(ISERROR(FIND("/",B5)),B5,MID(B5,(FIND("/",B5)+1),99))+
IF(ISERROR(FIND("/",C5)),C5,MID(C5,(FIND("/",C5)+1),99))+
IF(ISERROR(FIND("/",D5)),D5,MID(D5,(FIND("/",D5)+1),99))+
IF(ISERROR(FIND("/",E5)),E5,MID(E5,(FIND("/",E5)+1),99))+
IF(ISERROR(FIND("/",F5)),F5,MID(F5,(FIND("/",F5)+1),99))+
IF(ISERROR(FIND("/",G5)),G5,MID(G5,(FIND("/",G5)+1),99))+
IF(ISERROR(FIND("/",H5)),H5,MID(H5,(FIND("/",H5)+1),99))
BTW, the indicator length can vary from one to three characters
pretty, not functional and I can't add helper columns (not even hidden
ones) as I'm not supposed to be messing with it.
The intention is that in Column B to H, an employee's hours for the day
should be entered. Optionally, this can be preceded by an indicator and
a slash e.g. E/9.5
The user is then supposed to *type* the total hours for the week into
column J ... That's annoying, to say the least.
If it wasn't for the optional indicator, I'd just put "=SUM(A2:G2)" into
I2 and copy it down.
Instead, I have a working formula which I suspect could be greatly
simplified. Can anyone give me an alternative that's a sensible length?
=IF(ISERROR(FIND("/",B5)),B5,MID(B5,(FIND("/",B5)+1),99))+
IF(ISERROR(FIND("/",C5)),C5,MID(C5,(FIND("/",C5)+1),99))+
IF(ISERROR(FIND("/",D5)),D5,MID(D5,(FIND("/",D5)+1),99))+
IF(ISERROR(FIND("/",E5)),E5,MID(E5,(FIND("/",E5)+1),99))+
IF(ISERROR(FIND("/",F5)),F5,MID(F5,(FIND("/",F5)+1),99))+
IF(ISERROR(FIND("/",G5)),G5,MID(G5,(FIND("/",G5)+1),99))+
IF(ISERROR(FIND("/",H5)),H5,MID(H5,(FIND("/",H5)+1),99))
BTW, the indicator length can vary from one to three characters