Change Text Time Date to todays Date

tazeo

Board Regular
Joined
Feb 15, 2007
Messages
132
Office Version
  1. 365
Platform
  1. Windows
I have a list of times which were bought over as Text, so the date is 01/01/1900.

I want to update the date to todays date.

Tried this: =DAY(H2)+MONTH(H2)+YEAR(H2)+HOUR(A9)+MINUTE(A9)+SECOND(A9) which gives me a 1905 year date
As well as =DAY(H2)&MONTH(H2)&YEAR(H2)&HOUR(A9)&MINUTE(A9)&SECOND(A9) which gives me 29920186470 which is getting close. i.e. 29/9/2018 6:47:00

I think I am close to the answer but not sure how to take the next step to get the result I want. Of course I could be totally wrong on this as well!!!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Excel 2016 (Windows) 64 bit
A
B
1
20:41​
2
4:16​
J502​
3
5:46​
1504​
4
5:47​
1105​
5
6:01​
1K02​
6
6:17​
T107​
7
6:19​
1506​

Ok on review not very clear question/problem. Sorry.

So A1 has =NOW()
A2:A7 has the times entered as text. For example where in A2 is 4:16 - it is actually 0.177777777777778 which is 0/01/1900 4:16:00 AM

My ultimate goal is to use the NOW function to show the current time, and with conditional formating show which time in A2:A* I am upto. So I need a way to amend the times in A2:A* so that when compared to the NOW function I get real results.

Or in other words I need a way to change 01/01/1900 4:16:00 AM to 29/09/2018 4:16:00 AM or which every day I am looking at.
 
Upvote 0
Hi,

Would this help:


Book1
AB
19/29/2018 11:42
24:169/29/2018 4:16
35:469/29/2018 5:46
45:479/29/2018 5:47
56:019/29/2018 6:01
66:179/29/2018 6:17
76:199/29/2018 6:19
Sheet300
Cell Formulas
RangeFormula
A1=NOW()
B2=INT(A$1)+A2


B2 formula copied down.
 
Upvote 0
based on that would =INT(TODAY())+A1 be better, formatted as dd/mm/yyyy hh:mm
 
Upvote 0
@mole999, if you are using =TODAY() then you don't need the INT as it doesn't have a time portion (well strictly speaking it has 00:00 as the time part).


Excel 2010
AB
204:1629/09/2018 04:16
305:4629/09/2018 05:46
405:4729/09/2018 05:47
506:0129/09/2018 06:01
606:1729/09/2018 06:17
706:1929/09/2018 06:19
Sheet2
Cell Formulas
RangeFormula
B2=TODAY()+A2


You will probably find that it causes more calculation than the INT(A1) as you are evaluating TODAY() in each cell rather than once.
 
Last edited:
Upvote 0
Wow, just goes to show how a brain can get caught up doing something tricky and keep heading down that path. A very elegant solution - Much obliged to you all.
 
Upvote 0
I'm sure we're All happy you got it working for you, you're welcome from all of us. :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,269
Messages
6,123,976
Members
449,138
Latest member
abdahsankhan

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