I'm trying to get the current year/month/day military time in a cell. This is exactly what I need in the cell #Date:2017/AUG/14 14:55:08 I know this is super easy to do but I'm just not getting the result that I want. This is what I tried.
="#Date"=date(yyyy,MMM,D, hh:mm)
If you're after VBA:
="#Date:" & Format(now(),"yyyy/MMM/D hh:mm:ss")
If you're after a cell formula:
="#Date:" & TEXT(NOW(),"yyyy/MMM/D hh:mm:ss")
Note: Consider DD instead of D if you want day 1 to read 01 instead of 1
Just enter:
=NOW()
in a cell and custom format as "#Date:"yyyy/mmm/dd hh:mm
Related
So I have this data directly copy/paste from iTunes :
Excel have "XX:XX:00" format which is "hh:mm:ss" but as you can imagine, it is more like "mm:ss:00". Musics are not hours long !
As it's not a direct cell format problem, I couldn't find easily the answer on internet. I need sometihng to put the 2 "00" at the start (in order to have "00:mm:ss")
EDIT : It was a cell format comprehension problem.
You can just divide the cell value to 60 like so
and then choose custom format for that cell like this
Format the cell with the time (C1) as "General". If it retains its value, like 11:42, then convert it with =TimeValue(C1) and format the cell as Custom mm:ss
If it changes to something like 0.4875 then convert it with =C1/60 and format the result as Custom mm:ss
This formula should work:
="00:" & MID(TEXT(A1,"h:mm:ss"),SEARCH(":",TEXT(A1,"h:mm:ss"))+1,3) & RIGHT(TEXT(A1,"h:mm:ss"),2)
The important element is to convert the time into a text string.
Change A1 to the first cell of Duration (Duree) & copy the formula downward
Then, you can copy the result and paste it as values
Edit: you can also use just the right function:
="00:"&RIGHT(TEXT(A1,"h:mm:ss"),LEN(TEXT(A1,"h:mm:ss"))-SEARCH(":",TEXT(A1,"h:mm:ss")))
1) I would expect in E14 "Today is 13.09.2016", because E16 is formatted as DATE (customer)! But there is a general number instead of date. Why is Excel not able to copy the content of E16 !! How can I get the date in this position?
PS: If you suggest me ="today is "&today(), then please explain me, how I can format the date in YYYYMMDD as in the screenshot
You need to use another function to apply formatting, try the following:
="today is " & TEXT(TODAY(), "yyyymmdd")
More info:
Excel Date Formatting
Put =TODAY() in A1.
Tap Ctrl+1 and format A1 as Number, Custom, Type: To\d\a\y i\s yyyymmdd
You will display This is 20160913 but retain the underlying raw date that can be used in calculations.
Try the code
="today is "&TEXT(E16,"yyyy-mm-dd")
http://www.mrexcel.com/forum/excel-questions/513984-linked-text-today-problem.html
I have received an Excel file that contains a number of datetime fields in the following "flat" format:
20150901120844
I need to convert this to a more useful value such as "2015-09-01 12:08:44" using Excel's formatting options.
How can I achieve this?
There is no formatting option that will adjust your dates for you, in this case.
But you can use a formula in an adjacent cell to reorganize the data into the date / time text you desire.
Let's say that 20150901120844 is in cell A1. Then in B1 you could enter this formula:
=LEFT(A1,4) & "-"& MID(A1,5,2) & "-"& MID(A1,7,2) & " "& MID(A1,9,2) & ":"& MID(A1,11,2) & ":"& MID(A1,13,2)
It will result in this value in cell B1: 2015-09-01 12:08:44.
How would you change this date type Monday, 31, August2015 at 6:08 AM to short date in Excel 31/08/2015 ?
Currently I use Text to Columns on the top date, find and replace to remove the comma on 31,. Then use a combination of =text(1,"00") and =month(A1&1 to format the numbers correctly and finally =concatenation() to join them all together.
This is time consuming and concatenated dates are in a different format to short date formats. When uploading data the software will see them as such.
I'm hoping there is a really easy way of doing this to save time.
It's a long formula, but it works. Before using it make sure you set the Number Formatting for the formula cell to the short date that you want.
Assuming that your awkward date is in cell A1, enter this formula in another cell:
=DATEVALUE(VALUE(SUBSTITUTE(MID(MID(A1,FIND(" ",A1)+1,99),1,2),",","")) & " " & MID(A1,FIND("|",SUBSTITUTE(A1," ","|",2))+1,3) & " " & MID(A1,FIND("|",SUBSTITUTE(A1," ","|",3))-4,4))
Excel cell should have the below value
ABC,04-04-2014
the date entered shouldn't be hard coded.
I need it by using
Today() or some other function.
Either:
="ABC," & TEXT(TODAY(),"dd/mm/yyyy")
or
="ABC," & TEXT(TODAY(),"mm/dd/yyyy")
depending on your desired date format.