Is it possible to use a formula or cell formatting in Excel to convert a column of American dates mm/dd/yyyy to British formats dd/mm/yyyyy.
I have tried the conventional custom formatting but it doesn't modify the existing dates
Thanks
· US format puts date values in the following order : month, day and year.
· When in UK excel, if the ‘day’ value is less than 12, excel automatically formats the cell as a number. If this is the case, then you can use the formula =DATE(YEAR(cell ref),DAY(cell ref),MONTH(cell ref)) which just swaps around the day and the month.
· If the ‘day’ is greater than 12, UK excel gets confused and automatically formats the cell as text. If this is the case, then the following formula should be used = DATE(RIGHT(cell ref,4),LEFT(cell ref,2),MID(cell ref,4,2)). This formula also re-orders the date, but treats it as text.
· To work out which formula to use you need an “IF” formula to work out if you are dealing with a text format or a number format, and then apply the appropriate formula from the points above =IF(ISTEXT(cell ref), DATE(RIGHT(cell ref,4),LEFT(cell ref,2),MID(cell ref,4,2)), DATE(YEAR(cell ref),DAY(cell ref),MONTH(cell ref)))
I guess this should work the other way around too , if converting from UK to US format.