Change dot formatted date to Slash format - excel

Hi all I want to change the date format from dot to slash and I have tried all ways of changing the date from control panel and also from the "Format option" in excel but nothing works.
Please would anyone can recommend how can I do this bulk change of format of date except doing it manually.
Any advices would be much appreciated.

First of all, make sure the value you have in the spreadsheet is a valid date.
Excel might interpret the value as plain text.
After you make sure it is a date, then you can change the date format using the cell attribute editor
You can use formatting like dd/mm/yyyy or mm/dd/yyyy

You can use substitute to replace the dot with a slash, then wrap that with datevalue to convert to a date. Lastly, format the cell as your desired Date format (such as Short Date or Custom).
Below, column A is your original data.
Column B contains the following formula:
=DATEVALUE(SUBSTITUTE(A2,".","/"))
Output:

Related

How to insert a date into a google spreadsheet?

In a google spreadsheet I define some vertical cells with Format 'Date' as '29.5.2019' (i.e. day.month.year). In the cell below I define a formula
=A3+7
to get the date one week later. But no matter what I enter in "A2", I get an error like:
Function ADD parameter 1 expects number values. But '29.5.2019' is a text and cannot be coerced to a number.
So although I think that the format in A2 is a date, the spreadsheet thinks its a text. So how to fix that?
Date should be in the format dd/mm/yyyy.

How to get what excel cell is showing?

I have a strange question.
Screenshot:
From the screenshot you can see that the formula bar is showing just a single apostrophe. This is on all of the blue cells. These should be dates but all this data is coming from a excel plugin (Board)
From what I know Excel treats this cells differently i.e. everything after the apostrophe should be shown as text but here there is nothing after the apostrophe and the cells are still showing a values.
Is there a way with formula that I can get and compare this value with another cell in different worksheet?
EDIT:
If there is a way to get it as a text, could it be than converted into date format number?
EDIT 2 - SOLUTION
As per Mahesh and Jeeped comments - there was a newline character in the formula bar
If the date is preceded only by a new line and there are no other characters after the date, this will be much simpler:
=VALUE(REPLACE(A1,1,1,""))
This will give you the date value in general format (i.e., 43033), so you'll have to format it as a date.
Note: Using DATEVALUE instead of VALUE will give you the same result.
You have not confirmed the vbLF characters in the cells but try this in an unused cell to retrieve a true date.
=datevalue(trim(mid(substitute(kn1, char(10), rept(char(32), len(kn1))), len(kn1), len(kn1))))
Assuming that you are on a DMY regional format that should get you a number like 43028. Format it as a date.

Unable to change date format in Excel

I have a column of dates with this format (19960124) for instance, and I want to change it to this format (yyyy-MM-dd) on Excel.
I tried all the date formates in Excel, but it gives me #################..etc.
How can I fix this?
Sadly, just changing the format is not good enough.
If you use a Custom Format of:0000-00-00 you get:
But this is not a true date. You need a formula to convert it into a date.
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
Assuming your date string is in A2, then try this...
In B2
=DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2))
And you can then format the formula column with the desired date format.
You can use the Text function to change the date format in the formula itself, but then the date would be considered as a text string not a real date.
Sometimes this happens that Excel refuses the Cell Format command, to get rid from that better use Text command,
=Text(A1, "yyyy - mm-dd")
Drag if required.
ONE more simple example,,
=IF(A3="India",TEXT(C3*53.55,"Rs. #,##0.00"),IF(A3="U.K.",TEXT(C3*0.66,"£ #,##0.00"),IF(A3="Japan",TEXT(C3*99.5,"¥ #,##0.00"),C3)))

Default date format for TEXT function in Excel

Excel document.
I have a date value in a cell. Then I have used TEXT function to format this date as a text:
=TEXT(A1;"dd-mm-yyyy")
It works. But does a default value exist for date format? Something like this:
=TEXT(A1;date)
In general, no.
As a workaround, which may work in some cases, you could use =TODAY() in one cell (say, A1), which should have the default date format, and =CELL("format",A1) in A2, which will contain a result given in a table in http://office.microsoft.com/en-001/excel-help/cell-function-HP010062392.aspx.
You would have to inquire about the result being D1 to D5, and then translate it into a suitable format string.
No it doesn't as it would be locale specific. (e.g. US a default could be MM/DD/YYYY, in the UK DD/MM/YYYY. That would make spreadsheets very brittle).
The only standards are ISO-8601 which specifies YYYYMMDD and ISO-8601-Ext which specifies YYYY-MM-DD.
I would suggest you are always explicit with your formatting. In that respect, by not supplying a default, Excel helps.

Changing date excel cells

I have a date cells which contain the date format with the general. I want to change its cell with the same format like other cells but the problem is if I change it then it will change the entirely format of its cell.
What I've tried so far is within this formula inside of its formatting cells
(mm/dd/yy hh:mm:ss)
But I all I want to is just using the same format like the others. Thanks
Check on the file please try to change the value and any helps will be so much helpful
https://hotfile.com/dl/157148115/5ee7808/datesample.xlsx.html
The dates are stored as text
You can use datevalue and timevalue to convert the data to a real date format
in A2, enter =DATEVALUE(A1)+TIMEVALUE(A1) to get a value you can format as you wish
"05/02/2012 16:23:53" 41031.68325
"05/02/2012 16:23:53" 41031.68325
"05/04/2012 08:17:52" 41033.34574
the value displayed in the 2nd column is the excel representation of a date/time - you can then format these how you want, or do calculations to get durations.

Resources