Ricoventry
New Member
- Joined
- Mar 1, 2015
- Messages
- 3
Hello there,
I find myself at this, my first Excel forum, for I find myself with nowhere else to turn. Any help offered will incredibly gratefully received.
I'm working on a holiday tracker, and it's pretty evolved as it stands. The issue I have two sets of staff on the same page but treated differently; namely full-time staff and part-time staff. A code in a calendar denotes a value that I manipulate elsewhere.
The code in this instance is 'S'. If I enter an 'S' into the corresponding day for a full time individual, I will track that they have been off sick for 7 hours (their normal working day).
If that staff member is part-time, I will put S followed by the number of hours they've been off sick for. So, if a part-time member of staff is schedule to be in for 4 hours but phones in sick, the code will be S4.
Now, the code I'm using to extract the numerical data after the S is this:
{=SUM(IF(LEFT(L$5:L$200)<>"S",0,--MID(L$5:L$200,FIND("",L$5:L$200)+1,LEN(L$5:L$200))))}
Whilst this seems to work correctly, I've noticed that if a full time member of staff in the same range is off sick, then when I put a simple 'S' in that box, I am met with a value error. I have attempted the following, but to no avail:
{=SUM(IF(LEFT(I$5:I$120)<>"S",AND(LEFT(I$50:I$198,2)<>"",--MID(I$50:I$198,FIND("",I$50:I$198)+1,LEN(I$50:I$198)))))}
Now, owing to the set requirements I have the following restrictions:
As I say, I'm really grateful to whoever's taken the time to read through this.
Thanks,
Ricoventry
I find myself at this, my first Excel forum, for I find myself with nowhere else to turn. Any help offered will incredibly gratefully received.
I'm working on a holiday tracker, and it's pretty evolved as it stands. The issue I have two sets of staff on the same page but treated differently; namely full-time staff and part-time staff. A code in a calendar denotes a value that I manipulate elsewhere.
The code in this instance is 'S'. If I enter an 'S' into the corresponding day for a full time individual, I will track that they have been off sick for 7 hours (their normal working day).
If that staff member is part-time, I will put S followed by the number of hours they've been off sick for. So, if a part-time member of staff is schedule to be in for 4 hours but phones in sick, the code will be S4.
Now, the code I'm using to extract the numerical data after the S is this:
{=SUM(IF(LEFT(L$5:L$200)<>"S",0,--MID(L$5:L$200,FIND("",L$5:L$200)+1,LEN(L$5:L$200))))}
Whilst this seems to work correctly, I've noticed that if a full time member of staff in the same range is off sick, then when I put a simple 'S' in that box, I am met with a value error. I have attempted the following, but to no avail:
{=SUM(IF(LEFT(I$5:I$120)<>"S",AND(LEFT(I$50:I$198,2)<>"",--MID(I$50:I$198,FIND("",I$50:I$198)+1,LEN(I$50:I$198)))))}
Now, owing to the set requirements I have the following restrictions:
- I am not permitted to use VBA
- I cannot simply put S7 for the full time members of staff.
- I'm using a combination of Excel 2010 (home) and Excel 2013 (work)
As I say, I'm really grateful to whoever's taken the time to read through this.
Thanks,
Ricoventry