I'm working on a timesheet, trying to get it to add the various types of leave based on what kind of leave is taken. For the most part, I have this working using the following formula:
{=SUM(IF(ISNUMBER(FIND(R$1,C2:P2)),VALUE(LEFT(C2:P2,FIND(R$1,C2:P2)-1)),0))}
It is only when there is more than one type of leave in the cell that I run into issues.
Sample:
Dates are shown on Row 1 beginning in Column C
Leave taken starts on Row 2 thru 19
3/8/2015 3/9/2015 3/10/2015 3/11/2015 .... 3/21/2015 AL S CRW CRT ADM
2AL / 2CRT, 3AL / 2S ...I should get 5AL, 2S, 2CRT under the appropriate headings without the text 5,2,2
but S just show "# Value!"
R1 = AL
S1 = S
T1 = CRW
U1 = CRT
V1 = ADM
Any assistance would be greatly appreciated!
{=SUM(IF(ISNUMBER(FIND(R$1,C2:P2)),VALUE(LEFT(C2:P2,FIND(R$1,C2:P2)-1)),0))}
It is only when there is more than one type of leave in the cell that I run into issues.
Sample:
Dates are shown on Row 1 beginning in Column C
Leave taken starts on Row 2 thru 19
3/8/2015 3/9/2015 3/10/2015 3/11/2015 .... 3/21/2015 AL S CRW CRT ADM
2AL / 2CRT, 3AL / 2S ...I should get 5AL, 2S, 2CRT under the appropriate headings without the text 5,2,2
but S just show "# Value!"
R1 = AL
S1 = S
T1 = CRW
U1 = CRT
V1 = ADM
Any assistance would be greatly appreciated!
Last edited: