convert into date/time format

okl

Board Regular
Joined
Jan 17, 2008
Messages
52
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I have 2 column data:
event_date_time
arrival-date_time

when i do a [arrival_date_time] - [event_date_time]
i got the output e.g as "42444.58", how can i convert to "dd/mm/yyyy hh:mm" format?

Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
you don't

because it makes no sense to do that

what if the difference is one day and 5 hours

do you expect to see
01/00/0000 05:00

that makes no sense at all
 
Upvote 0
you don't

because it makes no sense to do that

what if the difference is one day and 5 hours

do you expect to see
01/00/0000 05:00

that makes no sense at all

Hi,
i made a mistake.
What i trying to do is as in below:

[dd/mm/yyyy hh:mm] -[minutes]

example:
[19/03/2016 16:42:56] - [77.44] = 19/03/2016 hh:mm

to get the final result as dd/mm/yyyy hh:mm format

 
Upvote 0
In Excel, hours, minutes, and seconds are represented as fractional parts of one day. One hour is one twenty-fourth part of a day or =1/24; one minute is =1/(24*60) or =1/1440; one second is =1/(24*60*60) or 1/86400.

If you have the number of minutes, your formula should be:
[19/03/2016 16:42:56] - [77.44 / 1440] = 19/03/2016 hh:mm
 
Upvote 0

Forum statistics

Threads
1,221,821
Messages
6,162,157
Members
451,750
Latest member
pnkundalia

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