0% found this document useful (0 votes)
16 views9 pages

Arif With Formula With Holidays

The document discusses calculating the number of days between dates and times accounting for weekends and holidays. It provides a table with 9 cases showing start and end dates and times. It notes that the current formula calculates 4 days difference for all cases, but case 2 should be 3 days and case 4 should be 5 days when considering start and end times. It then provides a formula to calculate the days difference that subtracts holidays from the total days.

Uploaded by

Abidsid89
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views9 pages

Arif With Formula With Holidays

The document discusses calculating the number of days between dates and times accounting for weekends and holidays. It provides a table with 9 cases showing start and end dates and times. It notes that the current formula calculates 4 days difference for all cases, but case 2 should be 3 days and case 4 should be 5 days when considering start and end times. It then provides a formula to calculate the days difference that subtracts holidays from the total days.

Uploaded by

Abidsid89
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Case 1st Date 1st Time 2nd Date

Case 1 Monday, November 11, 2013 4:00 Friday, November 15, 2013
Case 2 Tuesday, November 12, 2013 22:00 Saturday, November 16, 2013
Case 3 Wednesday, November 13, 2013 13:00 Sunday, November 17, 2013
Case 4 Thursday, November 14, 2013 1:00 Monday, November 18, 2013
Case 5 Friday, November 15, 2013 18:00 Tuesday, November 19, 2013
Requirment
as per calculation of excel days difference is correct, but I want to calculate the days difference on the basics of timing
,for example if 1st time is b/w 00:00 am to 12:00 A.M I want to count(or include) this date in days calculation & if 2nd time is in b/w 00:00 A.M to 12:00 A.M i want
to exclude this date in days calculation.
in case 2 as per my requirment days difference is 3 days but as per current simple formula difference is 4 days
in case 4 as per my requirment days difference is 5 days but as per current simple formula dfference is 4 days
2nd Time
Days
Difference
16:00 4
2:00 4
5:00 4
23:00 4
6:00 4
as per calculation of excel days difference is correct, but I want to calculate the days difference on the basics of timing
,for example if 1st time is b/w 00:00 am to 12:00 A.M I want to count(or include) this date in days calculation & if 2nd time is in b/w 00:00 A.M to 12:00 A.M i want
to exclude this date in days calculation.
in case 2 as per my requirment days difference is 3 days but as per current simple formula difference is 4 days
in case 4 as per my requirment days difference is 5 days but as per current simple formula dfference is 4 days
as per calculation of excel days difference is correct, but I want to calculate the days difference on the basics of timing
,for example if 1st time is b/w 00:00 am to 12:00 A.M I want to count(or include) this date in days calculation & if 2nd time is in b/w 00:00 A.M to 12:00 A.M i want
to exclude this date in days calculation.
in case 2 as per my requirment days difference is 3 days but as per current simple formula difference is 4 days
in case 4 as per my requirment days difference is 5 days but as per current simple formula dfference is 4 days
Case 1st Date 1st Time 2nd Date
Case 1 Monday, November 11, 2013 5:01:00 PM Friday, November 15, 2013
Case 2 Tuesday, November 12, 2013 10:00:00 PM Saturday, November 16, 2013
Case 3 Wednesday, November 13, 2013 1:00:00 PM Sunday, November 17, 2013
Case 4 Thursday, November 14, 2013 11:59:59 AM Monday, November 18, 2013
Case 5 Friday, November 15, 2013 6:00:00 PM Tuesday, November 19, 2013
Case 6 Thursday, November 14, 2013 2:00:00 AM Thursday, November 14, 2013
Case 7 Sunday, November 17, 2013 12:00:00 AM Thursday, November 21, 2013
Case 8 Sunday, November 17, 2013 11:59:59 AM Thursday, November 21, 2013
Case 9 Friday, November 15, 2013 12:00:00 PM Thursday, November 21, 2013
Requirment
4.00
Example
now in the range of( j2:j9) there are
2 holiday want to add these 2
holidays with g10,this become 3,
now less this 3 from f10, the final
answer would be 4
I want to add all holidays(j2:j9)range and want to add g10
then want to subtract this answer from f10
2nd Time
Days
Difference
Free
Ddays
11:00:00 AM 4 2 2.00 Sunday
2:00:00 AM 3 2 any other holiday
5:00:00 AM 3 1
6:00:00 AM 4 0
6:00:00 AM 3 0
6:00:00 PM 0 0
12:00:00 AM 4 0
12:00:01 PM 5 0
12:00:00 AM 7 0
Select the Next Cell
and see the formula in
Formula Bar
5
I want to add all holidays(j2:j9)range and want to add g10
then want to subtract this answer from f10
Required Formula is as under
=F10-G10-(COUNT(J2:J9))
Holidays
Sunday, November 17, 2013
Monday, November 18, 2013
12:00:00 AM 0.00
1:00:00 AM 0.04
2:00:00 AM 0.08 00:000
3:00:00 AM 0.13
4:00:00 AM 0.17
5:00:00 AM 0.21
6:00:00 AM 0.25
7:00:00 AM 0.29
8:00:00 AM 0.33
9:00:00 AM 0.38
10:00:00 AM 0.42
11:00:00 AM 0.46
12:00:00 PM 0.50
1:00:00 PM 0.54
2:00:00 PM 0.58
3:00:00 PM 0.63
4:00:00 PM 0.67
5:00:00 PM 0.71
6:00:00 PM 0.75
7:00:00 PM 0.79
8:00:00 PM 0.83
9:00:00 PM 0.88
10:00:00 PM 0.92
11:00:00 PM 0.96
12:00:00 AM 1.00
1:00:00 AM 1.04
2:00:00 AM 1.08
3:00:00 AM 1.13
4:00:00 AM 1.17
5:00:00 AM 1.21
6:00:00 AM 1.25
7:00:00 AM 1.29
8:00:00 AM 1.33
9:00:00 AM 1.38
10:00:00 AM 1.42
11:00:00 AM 1.46
12:00:00 PM 1.50
1:00:00 PM
2:00:00 PM
3:00:00 PM
4:00:00 PM
Holidays
Tuesday, November 12, 2013
Wednesday, November 13, 2013
HOURS 5
TIME 15
Column1 Column2 Column3
60 50 30
30 80 20
40 90 20
30 90 70

You might also like