Dear All,
I have a table of employees. I want to create a formula to look for holidays if found take number and put it on monthly holiday taken as example.
1 2 3 4 5 6 ....... 31 32 33
A Jun days 1 2 3 4 5 6 7 8 9 10 .... Holiday Sickness Worked
B John H7.5 H3 H3.5
C
:
:
John has taken holiday on 1st Jun 7.5 Hours on 5th Jun 3 hours on 9th Jun 3.5 hours.
I want to create a formula to look for the cell if there is H letter take the number and Sum all holidays.
the following formula is working fine
=SUM(IF(MID(B2,FIND("H",B210)+1,5) > 0, MID(B2,FIND("H",B2)+1,5), 0), IF(MID(B6,FIND("H",B6)+1,5) > 0, MID(B6,FIND("H",B6)+1,5), 0))
But If I use cell B2,3,4, It doesn't work because it there is no H letter in B2,3,4.
Can you please tell me how to fix the problem if I add all days of month in the formula if there is H pick the number if there is no H ignore the cell?
Please let me know if you need more details.
Thanks in advance
Excel100
Bookmarks