how to set an excel formula to calculate
number of days including am and pm ?My basic requirement is:
i need to create an excel file to input start date and end date (including to indicate am or pm), in order to calculate the number of
days an employee taking sick leave or vacation leave
in between different dates .I input start date of sick leave in column A , end date of sick leave into column B and need to set a formula in Column C to show the actual number of days of sick leave the employee had taken. 我已找到可計算日期之間的相差日數的website, 但no use for me because i still need to input some other information and date into the excel file in another Column , therefore i need the formula to insert into my excel file, not just know the 日期之間的相差日數.My basic requirement :
1. Counting within the same day:
from a.m to a.m is 0.5 day (the same day)
from p.m to p.m is 0.5 day (the same day) For example:from : 1 oct 2011 a.m to 1 oct 2011 a.m is 0.5 day
from: 1 oct 2011 p.m to 1 oct 2011 p.m is 0.5 day
from: 1 oct 2011 a.m to 1 oct 2011 p.m is 1 day
From a.m. to p.m is 1 day (the same date)
2. Counting from today to the next date or more dates :
from today a.m to tomorrow a.m is 1.5 day ( from one day to another date)
from today a.m to tomorrow p.m is 2 days
for example:From 1 oct 2011 a.m to 2 oct 2011 a.m is 1.5 day
from : 1 oct 2011 a.m. to 2 oct 2011 pm is 2 days
from: 1 oct 2011 a,m. to 3 oct 2011 am is 2.5 days
from : 1 oct 2011 a.m. to 3 oct 2011 pm is 3 days
如此類推....
請高人provide formula.
2. If no formula, which website i can go to get help?
3 any free software i can get ?