how to conver dd-mm-yyyy to dd/mm/yyyy in excel ?
To convert a date in the format dd-mm-yyyy
to dd/mm/yyyy
in Excel, you can use the following steps:
Assume your date is in cell A1:
SUBSTITUTE
function to replace the hyphens with slashes.Enter the following formula in another cell:
=SUBSTITUTE(A1, "-", "/")
This formula will replace all hyphens (-
) with slashes (/
).
If the date is recognized as a date by Excel (i.e., it is not stored as text), you can change the date format using custom formatting.
dd/mm/yyyy
.If the dates are stored as text and you want to convert them to actual date values:
DMY
from the dropdown.After this, you can format the cells to display the date in the dd/mm/yyyy
format using the custom formatting method described above.
If the date is stored as text and you want to convert it to an actual date value:
Assume your date is in cell A1:
=DATE(MID(A1, 7, 4), MID(A1, 4, 2), LEFT(A1, 2))
Format the resulting cell as dd/mm/yyyy
using the custom formatting method described above.
By using any of these methods, you can convert dates from the dd-mm-yyyy
format to the dd/mm/yyyy
format in Excel.