Hi All
I have a rota on Excel that originally referenced a specific cell to determine whether or not to include a lunch break in the total hours cell. I would prefer to simply add this into the IF statement and eradicate the unnecessary extra cell where a lunch break is manually selected.
Currently, I have this, but it does not correctly deduct the hour:
I can't reference the total cell (N6) without creating a circular reference, which was my only other thought.
Any ideas?
I have a rota on Excel that originally referenced a specific cell to determine whether or not to include a lunch break in the total hours cell. I would prefer to simply add this into the IF statement and eradicate the unnecessary extra cell where a lunch break is manually selected.
Currently, I have this, but it does not correctly deduct the hour:
Rich (BB code):
=IF(K6=ʺDOʺ,0,IF(K6=ʺBHʺ,8,IF(K6=ʺALʺ,8,IF(L6-K6>6,-1,(L6-K6)*24))))
I can't reference the total cell (N6) without creating a circular reference, which was my only other thought.
Any ideas?