Counting days between two dates which a day is 7.5 hours

lacombeg

Board Regular
Joined
Jan 4, 2011
Messages
80
Hello,
I am looking for a formula that would count the days between two dates, start and end. My day counts as 7.5 hours, therefore if I put in July 18 as a start date and July 18 as the end date, I would like the result to be 1 day and not 0.
Here is a copy of my spreadsheet.

This is my formula in column B: =WORKDAY(A5,C5)
When inserting amount of days, it automatically inserts the end date

This is my formula in column D: =IF(TODAY()<A5,"",MIN(1,(TODAY()-A5)/C5))

This is my formula in column E: =IF(D5="", "Not started", IF(D5<100%, "In progress", "Completed"))

Column A
Start Date
27-Apr-16
27-Apr-16
2-May-16
9-May-16
11-May-16

Column B
End Date
15-May-16
2-May-16
9-May-16
10-May-16
18-May-16

Column C
Number of Days
14
3
5
1
5

Column D
Percentage Completed
75%
100%
100%
100%
0%

Column E
Status
In progress
Completed
Completed
Completed
In progress

Thanks
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
IF the column C formula is =NETWORKDAYS(A5,B5)+1 then the same date in Columns' A & B would return 1 day.
 
Upvote 0
IF the column C formula is =NETWORKDAYS(A5,B5)+1 then the same date in Columns' A & B would return 1 day.

Thanks for your reply

Because I already have a formula in Column B, when I enter the suggested formula in column C, it give me a Circular Reference Warning.
 
Upvote 0
Could you re-post your formula for Column D and be sure to put a single space around < and > characters?

WBD
 
Upvote 0
This?


Book1
ABCDE
1Start DateEnd DateNumber of DaysPercentage CompletedStatus
211-Jul-1629-Jul-161414.29%In progress
311-Jul-1614-Jul-16366.67%In progress
414-Jul-1621-Jul-165Not started
511-Jul-1612-Jul-161100.00%Completed
611-Jul-1618-Jul-16540.00%In progress
Sheet1
Cell Formulas
RangeFormula
D2=IF(TODAY()1,(NETWORKDAYS(A2,TODAY())/C2)))
E2=IF(D2="","Not started",IF(D2<1,"In progress","Completed"))
B2=WORKDAY(A2,C2)


WBD
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top