Seahorse
Member
So I have a plan that has start and end date/times using one of the custom options - dd mm yy\ hh:mm.
 
What want to do is add new column that checks there is a start date time group, end date time group and the supplies the answer as 1 Day 05:20 or is blank.
 
=IF(OR(D2-C2<=0,C2<=0),"",INT(D2-C2)&" days "&TEXT(D2-C2,"h"" hrs ""m"" mins """))
 
Output date & time sorted:
 
=IF(OR(D18-C18<=0,C18<=0),"",INT(D18-C18)&" days "&TEXT(D18-C18,"hh"":""mm"""""))
 
I have not yet sorted the output time formatting as I have run into a problem where editing an exisiting date then adds seconds, and these don't seem to calculate at all.  For example changing 12 05 14 10:00 to 16 05 14 10:00 displays 16 05 14 10:00:00.
 
Example is attached, I would appreciate a some help on this one.
				
			What want to do is add new column that checks there is a start date time group, end date time group and the supplies the answer as 1 Day 05:20 or is blank.
=IF(OR(D2-C2<=0,C2<=0),"",INT(D2-C2)&" days "&TEXT(D2-C2,"h"" hrs ""m"" mins """))
Output date & time sorted:
=IF(OR(D18-C18<=0,C18<=0),"",INT(D18-C18)&" days "&TEXT(D18-C18,"hh"":""mm"""""))
Example is attached, I would appreciate a some help on this one.
Attachments
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
	 I have stripped the seconds out, as they are of no consequence.  Fixed example attached for ease of reference for others.
  I have stripped the seconds out, as they are of no consequence.  Fixed example attached for ease of reference for others.
