creating a date and time from two cell values

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,201
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

I'm looking for a way to create a Date (dd/mm/yy hh:mm:ss) from two cells

A2 = "24/01/2018 00:00:00"
and A3 = 12.00 (this can be changed to another formate if easier but a number is likely

how can I combine the two to get "
"24/01/2018 12:00:00" but actually as a date not just text?

thanks

Tony
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
if the A3 could be 12:00 rather than 12.00 then in A1 =A2+A3, as they are both numeric, at a push =--A2+--A3 or =--SUM(A2+A3). Otherwise the 12 has to be reduced, by dividing by 24
 
Last edited:
Upvote 0
or you can try this, and format the cell to date/time accordingly


Excel 2013/2016
ABC
1
2"24/01/2018 00:00:00"24/01/2018 12:30:00
312.50
Sheet1
Cell Formulas
RangeFormula
C2=MID(A2,2,LEN(A2)-2)*1+A3/24
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,992
Messages
6,128,170
Members
449,429
Latest member
ianharper68

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