Finding difference in time

Rubygas14

New Member
Joined
Jun 26, 2017
Messages
20
Need Help with the following Dates.

i have a a file but cannot attach i have copied the table below hope.

ABCDEFGHIJ
1Allocation timelast picked timetime and date needs to be ready
picked late ? Allocated Late
216/11/2018 14:2716/11/2018 15:0016/11/2018 14:00"yes" by how long by, so in this case 1 hour show 01:00:00 in cell G3 and yes in F3 Not Late00:27:00
3If F3= "yes" was Cell B3 and C3 within 1 hour of each other this case "yes" show time difference in cell K3 and "Not late" in cell J3
if B3 is >1 and <5 hours against C3 show "late" in J3 and time difference in K3


<colgroup><col><col span="2"><col><col><col span="3"><col span="2"></colgroup><tbody>
</tbody>
Please Help

Thanks
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Re: Need help finding difference in time

tried some of this and its reasonable straight forward BUT
need to know which cells to use
on the TABLE the date and times are shown as B,C & D
is that correct or have they moved due to pasting here, and so should be A,B & C

"yes" by how long by, so in this case 1 hour show 01:00:00 in cell G3 and yes in F3

C2-D2 formatted as Time , use [H]|:MM to get greater than 1 day

=IF ( C2 > D2 , "Yes", "No")

If F3= "yes" was Cell B3 and C3 within 1 hour of each other this case "yes" show time difference in cell K3 and "Not late" in cell J3

=IF(F2="Yes",IF((C2-B2)<time(1,0,0),"not late","late"))


time difference = (C2-B2), but if it can be a negative time - ie allocated is after picked
then it will show a negative time

if B3 is >1 and <5 hours against C3 show "late" in J3 and time difference in K3

<time(5,0,0))
=AND(C2-B2 > = TIME(1,0,0),C2-B2 < = TIME(5,0,0))

=IF( AND(C2-B2 > = TIME(1,0,0),C2-B2 < = TIME(5,0,0)) , "Late", "" )<time(5,0,0)) ,="" "late"="" ""="" )


time difference

C2 - B2</time(5,0,0))></time(5,0,0))
</time(1,0,0),"not>
 
Last edited:
Upvote 0
Re: Need help finding difference in time

if you can go by the cell that were pasted on here B1 for Allocation time
ive had a loogwith the formula is this to create 1 long formula or do they need to be placed in seperate cells.

Thanks in Advance.
 
Upvote 0
Re: Need help finding difference in time

separate cells, based on your questions - so i have used Column B in the above example

=IF(F2="Yes",IF((C2-B2) < TIME(1,0,0),"Not Late","Late"))

but your questions asks for different results in J3 and K3
in your question here
if B3 is >1 and <5 hours against C3 show "late" in J3 and time difference in K3
you ask for the answers to be put in J3 and K3 again - and what time difference between what cells

i stated a sample sheet here - with most of the answers
https://www.dropbox.com/s/ziu1xmqmap9siw5/timecalc_etaf.xlsx?dl=0
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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